-
-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathcompose.demo.yml
More file actions
34 lines (31 loc) · 871 Bytes
/
Copy pathcompose.demo.yml
File metadata and controls
34 lines (31 loc) · 871 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
name: dejacode-demo
x-description: "Minimal demo stack: web + db only, auto-created superuser, Codespaces-ready"
services:
db:
image: docker.io/library/postgres:16.13
env_file:
- .env.demo
volumes:
- ./data/postgresql:/docker-entrypoint-initdb.d/
shm_size: "1gb"
restart: always
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
start_interval: 1s
web:
image: ghcr.io/aboutcode-org/dejacode:latest
command: sh -c "
./manage.py migrate &&
(./manage.py createsuperuser --noinput || true) &&
./manage.py runserver --insecure --skip-checks 0.0.0.0:8000"
env_file:
- .env.demo
ports:
- "8000:8000"
depends_on:
db:
condition: service_healthy