-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
107 lines (97 loc) · 2.57 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
103
104
105
106
107
version: '3.4'
services:
db:
image: postgres:14
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- ./docker-init-db.sql:/docker-entrypoint-initdb.d/init_db.sql
- db:/var/lib/postgresql/data
redis:
image: redis:6
sdk:
image: openformulieren/open-forms-sdk
ports:
- 8001:8080
busybox:
image: busybox
command: /bin/chown -R 1000 /private-media
volumes:
- private_media:/private-media
web:
build: &web_build
context: .
args:
RELEASE: ${TAG:-latest}
SDK_RELEASE: ${SDK_TAG:-latest}
image: open-forms-ext-haalcentraal-hr:latest
environment: &web_env
- DJANGO_SETTINGS_MODULE=openforms.conf.docker
- SECRET_KEY=${SECRET_KEY:-@r0w-0(&apjfde5fl6h23!vn)r1ldkp1c_d2#!$$did4z5hun4a}
- OPEN_FORMS_EXTENSIONS=token_exchange,prefill_haalcentraalhr
- DB_NAME=openforms
- DB_USER=openforms
- DB_HOST=db
- CACHE_DEFAULT=redis:6379/0
- CACHE_AXES=redis:6379/0
- CACHE_OIDC=redis:6379/0
- CACHE_PORTALOCKER=redis:6379/0
- ALLOWED_HOSTS=*
- CORS_ALLOW_ALL_ORIGINS=yes
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
- CELERY_LOGLEVEL=DEBUG
- SDK_BASE_URL=${SDK_BASE_URL:-http://localhost:8001}
- OPENFORMS_LOCATION_CLIENT=${OPENFORMS_LOCATION_CLIENT:-openforms.contrib.bag.client.BAGClient}
- TWO_FACTOR_FORCE_OTP_ADMIN=0
- TWO_FACTOR_PATCH_ADMIN=0
# Needed for Celery Flower to match the TIME_ZONE configured in the
# settings used by workers and beat containers.
- TZ=Europe/Amsterdam
volumes:
- media:/app/media
- private_media:/app/private_media
ports:
- 8000:8000
depends_on:
- db
- sdk
nginx:
image: nginx
volumes:
- ./docker-nginx-default.conf:/etc/nginx/conf.d/default.conf
- private_media:/private-media
ports:
- "9000:80"
depends_on:
- web
celery:
build: *web_build
image: open-forms-ext-haalcentraal-hr:latest
environment: *web_env
command: /celery_worker.sh
depends_on:
- db
- redis
celery-beat:
build: *web_build
image: open-forms-ext-haalcentraal-hr:latest
environment: *web_env
command: /celery_beat.sh
depends_on:
- db
- redis
celery-flower:
build: *web_build
image: open-forms-ext-haalcentraal-hr:latest
environment: *web_env
command: /celery_flower.sh
ports:
- 5555:5555
depends_on:
- redis
- celery
volumes:
db:
media:
private_media: