-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
85 lines (85 loc) · 2.12 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
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
84
85
services:
postgres:
image: postgres:15
ports:
- 5432:5432
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- ./compose/postgres-15:/var/lib/postgresql/data
rabbitmq:
image: rabbitmq:3
email:
image: djfarrelly/maildev
ports:
- 1080:80
frontend:
image: node:18
working_dir: /opt/app
user: "1000"
volumes:
- .:/opt/app
command: sh -c "npm i && npm run watch"
learning-circles:
image: p2pu/learning-circles:local
build:
context: .
network: host
ports:
- 8000:8000
volumes:
- .:/opt/app
depends_on:
- rabbitmq
- postgres
- email
- frontend
env_file: docker.env
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 -A learnwithpeople worker --loglevel=INFO
env_file: docker.env
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
volumes:
- .:/opt/app
working_dir: /opt/app
command: /opt/django-venv/bin/celery -A learnwithpeople beat --loglevel=DEBUG --schedule=/var/lib/celery/celerybeat-schedule
env_file: docker.env
environment:
- DATABASE_URL=postgres://lc:password@postgres:5432/lc
- SECRET_KEY=321
- BROKER_URL=amqp://guest:guest@rabbitmq//