-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
54 lines (54 loc) · 1.18 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
version: '2'
services:
api:
restart: always
image: autotrade/autotrade
volumes:
- ./conf.json:/mnt/autotrade/conf.json
env_file: ./envrc
command: bash -c "python /mnt/autotrade/bin/app.py"
ports:
- 8000:8080
worker:
restart: always
image: autotrade/autotrade
volumes:
- ./conf.json:/mnt/autotrade/conf.json
links:
- mysql
env_file: ./envrc
command: bash -c "while true; do python /mnt/autotrade/bin/worker.py; sleep 60; done;"
chart:
restart: always
volumes:
- ./conf.json:/mnt/autotrade/conf.json
links:
- mysql
image: autotrade/autotrade
command: bash -c "while true; do python /mnt/autotrade/bin/make_chart.py; done;"
metabase:
restart: always
image: metabase/metabase
env_file: ./envrc
links:
- mysql
volumes:
- ./val/metabase:/metabase-data
ports:
- 3000:3000
mysql:
restart: always
image: mysql
env_file: ./envrc
volumes:
- ./db:/var/lib/mysql
grafana:
restart: always
image: grafana/grafana
env_file: ./envrc
links:
- mysql
volumes:
- ./val/grafana:/var/lib/grafana
ports:
- 3001:3000