forked from open-zaak/open-zaak
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.travis.yml
83 lines (75 loc) · 2.07 KB
/
docker-compose.travis.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
# Inspired by https://docs.docker.com/compose/django/
version: '3.4'
services:
db_notifications:
image: postgres:11-alpine
environment:
- POSTGRES_PASSWORD=
- POSTGRES_HOST_AUTH_METHOD=trust
rabbitmq:
image: rabbitmq:3.7-alpine
# environment:
# - RABBITMQ_DEFAULT_USER=guest
# - RABBITMQ_DEFAULT_PASS=guest
celery:
image: openzaak/open-notificaties
environment:
- DJANGO_SETTINGS_MODULE=nrc.conf.docker
- SECRET_KEY=${SECRET_KEY:-y8=ynp!*&3z6!0ujpg$0nry%j#1z2@%hq9+1doh1bl+86w)730}
- 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
- DB_HOST=db_notifications
command: /celery_worker.sh
depends_on:
- db_notifications
- rabbitmq
notifications:
image: openzaak/open-notificaties
environment:
- DJANGO_SETTINGS_MODULE=nrc.conf.docker
- SECRET_KEY=${SECRET_KEY:-y8=ynp!*&3z6!0ujpg$0nry%j#1z2@%hq9+1doh1bl+86w)730}
- DB_HOST=db_notifications
- IS_HTTPS=no
- ALLOWED_HOSTS=*
- DEBUG=yes
volumes:
- ./fixtures_notificaties:/app/fixtures
ports:
- 8001:8000
depends_on:
- db_notifications
- rabbitmq
db:
image: mdillon/postgis
ports:
- "5432"
# environment:
# - POSTGRES_USER=${PG_USER:zrc}
# - POSTGRES_PASSWORD=${PG_PASSWORD:zrc}
redis:
image: redis
mock-endpoints.local:
image: nginx:1.19
volumes:
- ./mocks.conf:/etc/nginx/conf.d/default.conf
ports:
- 9000:80
web:
build: .
environment:
- DJANGO_SETTINGS_MODULE=openzaak.conf.docker
- SECRET_KEY=${SECRET_KEY:-7(h1r2hk)8z9+05edulo_3qzymwbo&c24=)qz7+_@3&2sp=u%i}
- IS_HTTPS=no
- ALLOWED_HOSTS=localhost
- CACHE_DEFAULT=redis:6379/0
- CACHE_AXES=redis:6379/0
- DEBUG=yes
volumes:
- ./fixtures:/app/fixtures
ports:
- 8000:8000
depends_on:
- db