-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
34 lines (33 loc) · 754 Bytes
/
compose.yaml
File metadata and controls
34 lines (33 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
services:
backend:
build:
context: backendfastapi
dockerfile: Dockerfile
ports:
- 8090:8000
# depends_on:
# - db_service
env_file:
- .env
#volumes:
# - ./backendfastapi/src:/app
develop:
watch:
- action: rebuild
path: backendfastapi/requirements.txt
- action: rebuild
path: backendfastapi/backend.Dockerfile
- action: sync
path: backendfastapi/src
target: /app
command: uvicorn main:app --host 0.0.0.0 --port 8000 --reload
# db_service:
# image: postgres:latest
# ports:
# - 5432:5432
# env_file:
# - .db_env
# volumes:
# - managed_db_data:/var/lib/postgresql/data
# volumes:
# managed_db_data: