-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (43 loc) · 947 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
45 lines (43 loc) · 947 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
45
services:
web:
image: "${DOCKERHUB_USERNAME:-bbang0eun}/slow-kiosk:${IMAGE_TAG:-latest}"
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
expose:
- "8000"
env_file:
- .env
environment:
DJANGO_DEBUG: "False"
DATABASE_PATH: /app/data/db.sqlite3
volumes:
- kiosk_data:/app/data
healthcheck:
test:
- CMD
- python
- -c
- "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/', timeout=5)"
interval: 30s
timeout: 10s
retries: 3
start_period: 20s
caddy:
image: caddy:2-alpine
restart: unless-stopped
depends_on:
web:
condition: service_healthy
ports:
- "80:80"
- "443:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy_data:/data
- caddy_config:/config
volumes:
kiosk_data:
caddy_data:
caddy_config: