-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (49 loc) · 1016 Bytes
/
docker-compose.yml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
version: '3.9'
services:
worklife-test-api:
container_name: worklife-test-api
depends_on:
- worklife-test-db
restart: always
image: worklife-test:local
build:
context: ./
dockerfile: ./Dockerfile
networks:
- technical-backend
ports:
- "880:80"
env_file:
- app.env
- .env
environment:
PYTHONPATH: /wl
working_dir: /wl
volumes:
- ./app:/wl/app
command: [
"uvicorn",
"--host", "0.0.0.0",
"--port", "80",
"--reload-dir", "/wl/app",
"--log-level", "debug",
"--reload",
"app.main:app",
]
worklife-test-db:
container_name: worklife-test-db
image: postgres:12.4
volumes:
- technical-db-data:/var/lib/postgresql/data/
- ./scripts:/scripts/
env_file:
- ./app.env
networks:
- technical-backend
ports:
- "5434:5432"
volumes:
technical-db-data:
networks:
technical-backend:
name: technical-backend