-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
37 lines (35 loc) · 723 Bytes
/
compose.yaml
File metadata and controls
37 lines (35 loc) · 723 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
services:
db:
image: postgres:15
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
env_file:
- .env
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $POSTGRES_USER"]
interval: 10s
timeout: 5s
retries: 5
web:
# image: ghcr.io/ivellios/jewel:latest
build:
dockerfile: ./docker/dev.Dockerfile
context: .
env_file:
- .env
ports:
- "8000:8000"
depends_on:
db:
condition: service_healthy
volumes:
- .:/app
- venv:/app/.venv
command: >
sh -c "uv run manage.py migrate &&
uv run manage.py runserver 0.0.0.0:8000"
volumes:
postgres_data:
venv: