-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
99 lines (90 loc) · 2.28 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
version: "3.9"
services:
keycloak:
build:
context: ./docker/keycloak
dockerfile: Dockerfile
ports:
- "8080:8080"
volumes:
- ./docker/keycloak/themes/wirgarten:/opt/keycloak/themes/wirgarten
environment:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
web:
build: .
command: bash -c "poetry lock --no-update && poetry install && poetry run python manage.py collectstatic --noinput &&
poetry run python manage.py compilemessages --ignore \".venv\" &&
poetry run python manage.py runserver_plus 0.0.0.0:80 --reloader-type=stat"
volumes:
- .:/app
environment:
VIRTUAL_HOST: localhost
DEBUG: 1
depends_on:
- db
- selenium
- keycloak
nginx-proxy:
image: jwilder/nginx-proxy
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./docker/nginx/certs:/etc/nginx/certs:ro
- ./docker/nginx/vhost.d:/etc/nginx/vhost.d:ro
- ./docker/nginx/client_auth_certs:/etc/nginx/client_auth_certs:ro
- ./static:/usr/src/app/static
ports:
- "8000:80"
- "8001:443"
environment:
HTTPS_METHOD: noredirect
DEFAULT_HOST: localhost
db:
image: postgres:13
environment:
- POSTGRES_DB=tapir
- POSTGRES_PASSWORD=tapir
- POSTGRES_USER=tapir
ports:
- '5432:5432'
selenium:
image: selenium/standalone-firefox-debug:latest
shm_size: '2gb'
ports:
- 5900:5900 # VNC
# Backend for Celery task queue
redis:
image: redis:alpine
celery:
build:
context: .
dockerfile: Dockerfile
command: bash -c "poetry install &&
poetry run celery -A tapir worker -l info"
volumes:
- .:/app
environment:
DEBUG: 1
depends_on:
- redis
- db
celery-beat:
build:
context: .
dockerfile: Dockerfile
# --schedule to avoid polluting the app directory
command: bash -c "poetry install &&
poetry run celery -A tapir beat -l info --schedule /tmp/celerybeat-schedule"
volumes:
- .:/app
environment:
DEBUG: 1
depends_on:
- redis
- celery
db-admin:
image: adminer
ports:
- "8280:8080"
volumes:
nginx-certs-volume: