-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose-full.yml
65 lines (65 loc) · 1.73 KB
/
docker-compose-full.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
version: '3'
services:
postgres:
image: postgres:11
rabbitmq:
image: rabbitmq:3
email:
image: djfarrelly/maildev
ports:
- 1080:80
learning-circles:
build: .
image: p2pu/learning-circles:local
ports:
- 8000:8000
volumes:
- .:/opt/app
depends_on:
- rabbitmq
- postgres
- email
environment:
- ADMIN_EMAIL=admin@localhost
- BROKER_URL=amqp://guest:guest@rabbitmq//
- DATABASE_URL=postgres://lc:password@postgres:5432/lc
- DEBUG=true
- EMAIL_HOST=email
- PROTOCOL=http
- SECRET_KEY=321
command: /opt/django-venv/bin/python manage.py runserver 0.0.0.0:8000
celery:
image: p2pu/learning-circles:local
depends_on:
- rabbitmq
- postgres
- email
user: celery
volumes:
- .:/opt/app
working_dir: /opt/app
command: /opt/django-venv/bin/celery worker -A learnwithpeople --loglevel=INFO
environment:
- ADMIN_EMAIL=admin@localhost
- BROKER_URL=amqp://guest:guest@rabbitmq//
- DATABASE_URL=postgres://lc:password@postgres:5432/lc
- DEBUG=true
- EMAIL_HOST=email
- PROTOCOL=http
- SECRET_KEY=321
celery-beat:
image: p2pu/learning-circles:local
depends_on:
- rabbitmq
- postgres
user: celery
working_dir: /opt/app
command: /opt/django-venv/bin/celery beat -A learnwithpeople --loglevel=DEBUG --pidfile=/var/lib/celery/celerybeat.pid --schedule=/var/lib/celery/celerybeat-schedule
environment:
- DATABASE_URL=postgres://lc:password@postgres:5432/lc
- SECRET_KEY=321
- BROKER_URL=amqp://guest:guest@rabbitmq//