-
Notifications
You must be signed in to change notification settings - Fork 122
/
docker-compose.yml
60 lines (55 loc) · 1.19 KB
/
docker-compose.yml
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
version: '3.5'
services:
redis:
image: redis:6.2.6
networks:
- redis_network
caddy:
image: caddy:2.6.1-alpine
restart: unless-stopped
ports:
- "80:80"
- "443:443"
- "443:443/udp"
volumes:
- $PWD/_caddy/Caddyfile:/etc/caddy/Caddyfile
- static_files_volume:/usr/share/caddy/static
- caddy_data:/data
- caddy_config:/config
networks:
- caddy_network
environment:
- PROD_CSRF_ORIGIN
django:
build:
context: .
dockerfile: Dockerfile
args:
- DJANGO_SECRET_KEY
depends_on:
- redis
command: gunicorn webauthnio.wsgi -c gunicorn.cfg.py
volumes:
- ./_app:/usr/src/app
# Django static files will go here so Caddy can access them
- static_files_volume:/usr/src/app/static
networks:
- caddy_network
- redis_network
environment:
- PYTHONUNBUFFERED=0
- DJANGO_SECRET_KEY
- PROD_HOST_NAME
- PROD_CSRF_ORIGIN
- RP_ID
- RP_NAME
- RP_EXPECTED_ORIGIN
- AASA_APP_ID_PREFIX
- AASA_BUNDLE_ID
volumes:
static_files_volume:
caddy_data:
caddy_config:
networks:
caddy_network:
redis_network: