-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
109 lines (99 loc) · 2.02 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
108
109
version: '3'
volumes:
app-gems:
influx-data:
postgres-data:
redis-data:
celery-beat-data:
services:
core:
build: ./core
image: core
environment: &env
- PYTHONUNBUFFERED=1
- FLASK_ENV=development
- FLASK_APP=core.py
command: bash -c "flask run --host=0.0.0.0 --port=5001"
depends_on:
- influx
- postgres
expose:
- 5001
ports:
- 5001:5001
volumes:
- ./core:/app
flower:
build: ./core
environment: *env
command: bash -c "flower -A core.celery --basic_auth=admin:magicPassword"
volumes:
- ./core:/app
expose:
- 5555
ports:
- 5555:5555
depends_on:
- celery
celery:
build: ./core
environment: *env
command: >
bash -c "celery worker -A core.celery -l=INFO -n johnny@%h"
volumes:
- ./core:/app
depends_on:
- redis
- influx
- postgres
celery-beat:
build: ./core
environment: *env
command: bash -c "celery beat -A core.celery --schedule=tmp/celerybeat-schedule -l=INFO --pidfile=tmp/celerybeat.pid"
volumes:
- ./core:/app
depends_on:
- redis
influx:
image: influxdb:1.7.8-alpine
environment:
- INFLUXDB_LOGGING_LEVEL=warn
ports:
- 8086:8086
volumes:
- influx-data:/var/lib/influxdb
chronograf:
image: chronograf:1.7-alpine
environment:
- LOG_LEVEL=debug
ports:
- 8080:8888
depends_on:
- influx
dashboard:
build:
context: ./dashboard
dockerfile: .docker/Dockerfile
command: rails s -p 3000 -b 0.0.0.0
stdin_open: true
tty: true
depends_on:
- postgres
- redis
- core
ports:
- 3000:3000
volumes:
- ./dashboard:/usr/src/app
- app-gems:/usr/local/bundle
postgres:
image: postgres:10.4-alpine
ports:
- 5432:5432
volumes:
- postgres-data:/var/lib/postgresql/data
redis:
command: redis-server
image: redis:4.0.11-alpine
volumes:
- redis-data:/data