-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
107 lines (100 loc) · 2.62 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:
redis:
image: redis:5.0.6-alpine
restart: always
postgres:
image: postgres:9.5.3
restart: always
environment:
POSTGRES_USER: msparp
POSTGRES_PASSWORD: development
POSTGRES_DB: msparp
nginx:
build: extras/docker-nginx
restart: always
links:
- web
- live
ports:
- "80"
rabbitmq:
image: rabbitmq:3.8.0-management
restart: always
environment:
RABBITMQ_DEFAULT_USER: msparp
RABBITMQ_DEFAULT_PASS: development
RABBITMQ_DEFAULT_VHOST: msparp
web:
build: .
restart: always
command: ./extras/ensure_database.py gunicorn -b 0.0.0.0:5000 -k gevent -w 3 newparp:app
links:
- redis
- postgres
- rabbitmq
environment:
DEBUG: 1
BASE_DOMAIN: localhost.msparp.com
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_DB: 0
REDIS_CHAT_DB: 1
POSTGRES_URL: postgres://msparp:development@postgres:5432/msparp
CELERY_BROKER: amqp://msparp:development@rabbitmq:5672/msparp
CELERY_RESULT: redis://redis:6379/1
NOMAIL: 1
live:
build: .
restart: always
command: ./extras/ensure_database.py python3 newparp/workers/live.py
links:
- redis
- postgres
- rabbitmq
environment:
DEBUG: 1
BASE_DOMAIN: localhost.msparp.com
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_DB: 0
REDIS_CHAT_DB: 1
POSTGRES_URL: postgres://msparp:development@postgres:5432/msparp
CELERY_BROKER: amqp://msparp:development@rabbitmq:5672/msparp
CELERY_RESULT: redis://redis:6379/1
celery:
build: .
restart: always
command: ./extras/ensure_database.py celery -A newparp.tasks worker
links:
- redis
- postgres
- rabbitmq
environment:
DEBUG: 1
BASE_DOMAIN: localhost.msparp.com
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_DB: 0
REDIS_CHAT_DB: 1
POSTGRES_URL: postgres://msparp:development@postgres:5432/msparp
CELERY_BROKER: amqp://msparp:development@rabbitmq:5672/msparp
CELERY_RESULT: redis://redis:6379/1
beat:
build: .
restart: always
command: ./extras/ensure_database.py celery -A newparp.tasks beat
links:
- redis
- postgres
- rabbitmq
environment:
DEBUG: 1
BASE_DOMAIN: localhost.msparp.com
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_DB: 0
REDIS_CHAT_DB: 1
POSTGRES_URL: postgres://msparp:development@postgres:5432/msparp
CELERY_BROKER: amqp://msparp:development@rabbitmq:5672/msparp
CELERY_RESULT: redis://redis:6379/1