-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
45 lines (44 loc) · 1.04 KB
/
docker-compose.yaml
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
---
services:
django:
container_name: recipe-backend
build:
context: ./
args:
- DEV_MODE=true
- UID=${UID:-1000}
- GID=${GID:-1000}
dockerfile: docker/Dockerfile
volumes:
- ./:/app
expose:
- "8000"
- "5173"
ports:
- "8000:8000"
- "5173:5173"
env_file:
- ./.env
depends_on:
db:
condition: service_healthy
db:
container_name: recipe-db
image: postgres:16-alpine
healthcheck:
test: [
"CMD-SHELL",
"pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}",
]
start_period: 20s
interval: 10s
retries: 5
timeout: 5s
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data/
env_file:
- ./.env
volumes:
postgres-data: