-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
48 lines (43 loc) · 866 Bytes
/
Copy pathdocker-compose.yaml
File metadata and controls
48 lines (43 loc) · 866 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
version: "3.8"
services:
db_postgres_fastapi:
image: "postgres"
container_name: db_postgres_fastapi
ports:
- "7000:5432"
- "9000:5434"
env_file:
- "./database.env"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
interval: 30s
timeout: 30s
retries: 5
app:
build: .
volumes:
- static:/code/static
- .:/code
expose:
- 8000
ports:
- 5432:8000
- 5434:8000
env_file:
- "./database.env"
depends_on:
- db_postgres_fastapi
nginx:
image: nginx:1.13
ports:
- 8000:80
volumes:
- ./config/nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf
- static:/code/static
depends_on:
- app
volumes:
.:
postgres_data:
static: