forked from CenterForOpenScience/SHARE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
107 lines (100 loc) · 2.35 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
version: '2'
services:
elasticsearch:
image: elasticsearch:2
ports:
- 9200:9200
rabbitmq:
image: rabbitmq:management
ports:
- 5672:5672
- 15672:15672
postgres:
image: postgres
command: /bin/bash -c "sed -i -e 's/max_connections.*/max_connections = 5000/' /var/lib/postgresql/data/postgresql.conf || true && sed -i -e 's/#log_min_duration_statement = .*/log_min_duration_statement = 0/' /var/lib/postgresql/data/postgresql.conf || true && /docker-entrypoint.sh postgres"
ports:
- 5432:5432
environment:
POSTGRES_DB: share
beat:
build: .
command: python manage.py celery beat -l DEBUG
depends_on:
- postgres
- rabbitmq
links:
- rabbitmq
- postgres
- elasticsearch
volumes:
- ./:/code
environment:
DATABASE_HOST: postgres
BROKER_URL: amqp://guest:guest@rabbitmq:5672/
ELASTICSEARCH_URL: http://elasticsearch:9200/
worker:
build: .
command: python manage.py celery worker -l DEBUG
depends_on:
- postgres
- rabbitmq
- web
links:
- rabbitmq
- postgres
- web
- elasticsearch
volumes:
- ./:/code
environment:
DATABASE_HOST: postgres
BROKER_URL: amqp://guest:guest@rabbitmq:5672/
SHARE_API_URL: http://web:8000/
ELASTICSEARCH_URL: http://elasticsearch:9200/
flower:
build: .
command: python manage.py celery flower
depends_on:
- postgres
- rabbitmq
links:
- rabbitmq
- postgres
ports:
- 5555:5555
environment:
DATABASE_HOST: postgres
BROKER_URL: amqp://guest:guest@rabbitmq:5672/
monitor:
build: .
command: python manage.py monitor
depends_on:
- postgres
- rabbitmq
links:
- rabbitmq
- postgres
volumes:
- ./:/code
environment:
DATABASE_HOST: postgres
BROKER_URL: amqp://guest:guest@rabbitmq:5672/
web:
build: .
command: python manage.py runserver --noreload 0.0.0.0:8000
ports:
- 8000:8000
depends_on:
- postgres
- rabbitmq
- elasticsearch
links:
- postgres
- rabbitmq
- elasticsearch
volumes:
- ./:/code
environment:
DATABASE_HOST: postgres
BROKER_URL: amqp://guest:guest@rabbitmq:5672/
ELASTICSEARCH_URL: http://elasticsearch:9200/