-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
62 lines (61 loc) · 1.5 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# version: "3"
services:
django:
image: ghcr.io/ubuntu-kr/ubuntu-kr-qr-kiosk-admin:a73f5bf57fbb9577690c502a2b9c325c9bf62958
volumes:
- ./data:/app/data
- ./static:/app/static
ports:
- 8000:8000
environment:
- DB_NAME=kiosk
- DB_USER=kioskuser
- DB_HOST=postgres
- DB_PORT=5432
- CELERY_BROKER_URL=redis://redis:6379/0
env_file: "docker-compose.env"
depends_on:
- redis
- postgres
worker:
image: ghcr.io/ubuntu-kr/ubuntu-kr-qr-kiosk-admin:a73f5bf57fbb9577690c502a2b9c325c9bf62958
command: celery -A kioskadmin worker -l INFO
volumes:
- ./data:/app/data
- ./static:/app/static
environment:
- DB_NAME=kiosk
- DB_USER=kioskuser
- DB_HOST=postgres
- DB_PORT=5432
- CELERY_BROKER_URL=redis://redis:6379/0
env_file: "docker-compose.env"
depends_on:
- redis
- postgres
- django
redis:
image: bitnami/redis
environment:
- ALLOW_EMPTY_PASSWORD=yes
postgres:
image: postgres
environment:
- POSTGRES_USER=kioskuser
- POSTGRES_DB=kiosk
- PGDATA=/var/lib/postgresql/data/pgdata
env_file: "docker-compose.env"
volumes:
- ./data/pgdata:/var/lib/postgresql/data/pgdata
caddy:
image: caddy
volumes:
- ./data/Caddyfile:/etc/caddy/Caddyfile
- ./data/caddy_data:/data
- ./data/caddy_config:/config
- ./static:/var/www/static
ports:
- 80:80
- 443:443
depends_on:
- django