-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
68 lines (61 loc) · 1.6 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
61
62
63
64
65
66
67
68
version: "3"
x-gunicorn-master: &x-gunicorn-master
build: .
privileged: true
volumes:
- .:/app
environment:
- DOMAIN=localhost
- FRONTEND_URL=http://localhost:8000/
- SECRET_KEY=CorrectHorseBatteryStaple
- DJANGO_SETTINGS_MODULE=backend.settings.local
- ANDROMEDA_IP=andromeda
- ANDROMEDA_URL=http://andromeda:6000
- REDIS_PORT=6379
- REDIS_HOST=redis
- REDIS_CONFIG_DB=3
- REDIS_CACHE_DB=10
- SQL_PORT=5432
- SQL_HOST=database
- SQL_USER=postgres
- SQL_DATABASE=postgres
- EMAIL_PROVIDER=CONSOLE
services:
redis:
image: docker.io/redis:5
database:
image: docker.io/postgres:12-alpine
environment:
- POSTGRES_EXTENSIONS=citext
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- 'postgres:/var/lib/postgresql/data/'
shell:
image: ghcr.io/ractf/shell:latest
ports:
- "8000:8000"
environment:
- RACTF_API_BASE=/api/v2
- RACTF_USE_HEAD_NAV=true
- RACTF_SITE_NAME=RACTF Dev
- RACTF_API_DOMAIN=http://localhost:8000
- RACTF_WSS_URL=ws://localhost:8000/api/v2/ws/
depends_on:
- backend
- sockets
command:
caddy run --config /etc/caddy/Caddyfile.development --adapter caddyfile
backend:
<<: *x-gunicorn-master
entrypoint: /app/entrypoints/backend.sh
command: gunicorn backend.wsgi:application -b 0.0.0.0:8000
depends_on:
- database
sockets:
<<: *x-gunicorn-master
entrypoint: /app/entrypoints/sockets.sh
command: gunicorn backend.asgi:application -b 0.0.0.0:8000
depends_on:
- backend
volumes:
postgres: null