@@ -24,7 +24,7 @@ services:
24
24
25
25
web :
26
26
image : maykinmedia/open-archiefbeheer:latest
27
- environment :
27
+ environment : &web_env
28
28
- ALLOWED_HOSTS=localhost
29
29
- DJANGO_SETTINGS_MODULE=openarchiefbeheer.conf.docker
30
30
- SECRET_KEY=${SECRET_KEY:-django-insecure-!bkx+tx18&lvp(@_9)9ut(y(keqho*zhz1&^sqqgq9*i=__w(}
@@ -41,6 +41,13 @@ services:
41
41
- SESSION_COOKIE_SECURE=False
42
42
- TWO_FACTOR_FORCE_OTP_ADMIN=False
43
43
- TWO_FACTOR_PATCH_ADMIN=False
44
+ - CELERY_BROKER_URL=redis://redis:6379/0
45
+ - CELERY_RESULT_BACKEND=redis://redis:6379/0
46
+ - CELERY_LOGLEVEL=DEBUG
47
+ - REACT_APP_API_SCHEME=http
48
+ - REACT_APP_API_HOST=localhost
49
+ - REACT_APP_API_PORT=8080
50
+ - REACT_APP_API_PATH=/api/v1
44
51
ports :
45
52
- 8080:8080
46
53
depends_on :
@@ -49,6 +56,32 @@ services:
49
56
networks :
50
57
- open-archiefbeheer-dev
51
58
59
+ celery :
60
+ image : maykinmedia/open-archiefbeheer:latest
61
+ command : /celery_worker.sh
62
+ environment : *web_env
63
+ healthcheck :
64
+ test : [ "CMD", "python", "/app/bin/check_celery_worker_liveness.py" ]
65
+ interval : 30s
66
+ timeout : 5s
67
+ retries : 3
68
+ start_period : 10s
69
+ depends_on :
70
+ - db
71
+ - redis
72
+ networks :
73
+ - open-archiefbeheer-dev
74
+
75
+ celery-beat :
76
+ image : maykinmedia/open-archiefbeheer:latest
77
+ command : /celery_beat.sh
78
+ environment : *web_env
79
+ depends_on :
80
+ - db
81
+ - redis
82
+ networks :
83
+ - open-archiefbeheer-dev
84
+
52
85
nginx :
53
86
image : nginx
54
87
volumes :
0 commit comments