-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
46 lines (43 loc) · 820 Bytes
/
compose.yaml
File metadata and controls
46 lines (43 loc) · 820 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
services:
db:
image: postgres
container_name: db
restart: always
ports:
- '5435:5432'
environment:
- POSTGRES_DB=${DB_NAME}
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD}
- PGUSER=${DB_USER}
volumes:
- data:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready"]
timeout: 30s
retries: 5
interval: 1m30s
backend:
build: ./backend/
container_name: web-backend
ports:
- '8000:8000'
env_file:
- .env
volumes:
- static:/static
depends_on:
db:
condition: service_healthy
nginx:
build: ./nginx/
container_name: nginx
ports:
- '8080:80'
volumes:
- static:/static
depends_on:
- backend
volumes:
static:
data: