Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
F
fast_api_hw_4
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Мырзабеков Бекайдар
fast_api_hw_4
Commits
28b0dee5
Commit
28b0dee5
authored
Nov 11, 2023
by
Мырзабеков Бекайдар
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added docker-compose.yml
parent
fc8aaea7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
docker-compose.yml
docker-compose.yml
+33
-0
No files found.
docker-compose.yml
0 → 100644
View file @
28b0dee5
version
:
'
3'
services
:
app
:
build
:
context
:
.
dockerfile
:
Dockerfile
image
:
fast_api:1.0
restart
:
always
ports
:
-
"
${APP_PORT}:8000"
networks
:
-
fastapinetwork
volumes
:
-
.:/app
command
:
bash -c "poetry run python3 src/app/main.py"
depends_on
:
-
postgres
postgres
:
image
:
postgres:14-alpine
volumes
:
-
./data/postgres:/var/lib/postgresql/data/
environment
:
-
POSTGRES_PASSWORD=${DB_PASSWORD}
ports
:
-
"
${DB_PORT}:5432"
networks
:
-
fastapinetwork
networks
:
fastapinetwork
:
driver
:
bridge
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment