-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
45 lines (42 loc) · 902 Bytes
/
Copy pathcompose.yaml
File metadata and controls
45 lines (42 loc) · 902 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
services:
db:
image: postgres
restart: always
ports:
- "5432:5432"
volumes:
- ./data/db:/var/lib/postgresql
environment:
- PGUSER=postgres
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: "15s"
timeout: "5s"
retries: 10
adminer:
image: adminer
restart: always
ports:
- "5433:8080"
depends_on:
db:
condition: service_healthy
web:
build: .
command: uv run python manage.py runserver 0.0.0.0:8000
volumes:
- .:/app
ports:
- "8000:8000"
depends_on:
db:
condition: service_healthy
environment:
- POSTGRES_NAME=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_HOST=db
- POSTGRES_PORT=5432