forked from open-zaak/open-notificaties
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (43 loc) · 1.11 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
# Inspired by https://docs.docker.com/compose/django/
version: '3.4'
services:
db:
image: postgres:11-alpine
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
rabbitmq:
image: rabbitmq:3.7-alpine
# environment:
# - RABBITMQ_DEFAULT_USER=guest
# - RABBITMQ_DEFAULT_PASS=guest
redis:
image: redis
celery:
build: .
environment: &app-env
- DJANGO_SETTINGS_MODULE=nrc.conf.docker
- SECRET_KEY=${SECRET_KEY:-\(,gc7VE(#CO<zCR3e(lRtOsw5q+U2DpG5o\X#P4PVRm*=u|E%}
- IS_HTTPS=no
- ALLOWED_HOSTS=*
- CACHE_DEFAULT=redis:6379/0
- CACHE_AXES=redis:6379/1
- RABBITMQ_HOST=rabbitmq
- PUBLISH_BROKER_URL=amqp://guest:guest@rabbitmq:5672/%2F
- CELERY_BROKER_URL=amqp://guest:guest@rabbitmq:5672//
- CELERY_RESULT_BACKEND=amqp://guest:guest@rabbitmq:5672//
- CELERY_LOGLEVEL=DEBUG
- SUBPATH=${SUBPATH:-/}
command: /celery_worker.sh
depends_on:
- db
- rabbitmq
- redis
web:
build: .
environment: *app-env
ports:
- 8000:8000
depends_on:
- db
- rabbitmq
- redis