-
Notifications
You must be signed in to change notification settings - Fork 22
/
docker-compose.yml
102 lines (93 loc) · 2.38 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
100
101
102
services:
openldap:
image: "osixia/openldap"
environment:
LDAP_ORGANISATION: "SuperCoop Berlin"
LDAP_DOMAIN: "supercoop.de"
LDAP_ADMIN_PASSWORD: "admin"
LDAP_READONLY_USER: "true"
ports:
- "389:389"
volumes:
- ./ldap_testdata.ldif:/container/service/slapd/assets/config/bootstrap/ldif/custom/50-testdata.ldif
# Required so that the container doesn't modify the testdata ldif
command: --copy-service
web:
image: tapir-image
build:
context: .
dockerfile: ./django.Dockerfile
command: bash -c "poetry install &&
poetry run python manage.py compilemessages --ignore \".venv\" &&
poetry run python manage.py runserver_plus 0.0.0.0:80"
volumes:
- .:/app
environment:
VIRTUAL_HOST: localhost
DEBUG: 1
DJANGO_VITE_DEBUG: 1
depends_on:
- openldap
- db
- selenium
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
ports:
- "8000:80"
- "8001:443"
environment:
HTTPS_METHOD: noredirect
DEFAULT_HOST: localhost
db:
image: postgres:14-alpine
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:
image: tapir-image
command: bash -c "poetry install &&
poetry run celery -A tapir worker -l info"
volumes:
- .:/app
environment:
DEBUG: 1
depends_on:
- redis
celery-beat:
image: tapir-image
# --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
vite:
build:
context: .
dockerfile: ./vite.Dockerfile
tty: true
ports:
- '5173:5173'
volumes:
- .:/app
volumes:
nginx-certs-volume: