forked from VNG-Realisatie/notificaties-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (41 loc) · 1.19 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
# Inspired by https://docs.docker.com/compose/django/
version: '3.4'
services:
db:
image: postgres:11-alpine
# environment:
# - POSTGRES_USER=${PG_USER:nrc}
# - POSTGRES_PASSWORD=${PG_PASSWORD:nrc}
rabbitmq:
image: rabbitmq:3.7-alpine
# environment:
# - RABBITMQ_DEFAULT_USER=guest
# - RABBITMQ_DEFAULT_PASS=guest
celery:
build: .
environment:
- DJANGO_SETTINGS_MODULE=nrc.conf.docker
- SECRET_KEY=${SECRET_KEY}
- 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
command: /celery_worker.sh
depends_on:
- db
- rabbitmq
web:
build: .
environment:
- DJANGO_SETTINGS_MODULE=nrc.conf.docker
- SECRET_KEY=${SECRET_KEY}
- 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//
ports:
- 8000:8000
depends_on:
- db
- rabbitmq