This repository has been archived by the owner on Feb 23, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yaml
112 lines (103 loc) · 2.43 KB
/
docker-compose.yaml
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
110
111
112
version: '2'
services:
bot:
image: cryptotrader/bot
build:
context: ./
dockerfile: docker/bot/Dockerfile
environment:
# TODO - rm CONTAINER_CONFIG_PATH
- CONFIG_PATH=${CONTAINER_CONFIG_PATH}
- HOST_CONFIG_PATH=$HOST_CONFIG_PATH
volumes:
- ./:/usr/src
- ${HOST_CONFIG_PATH}:${CONTAINER_CONFIG_PATH}
networks:
- cryptotrader-bot-network
depends_on:
- db
- redis
command: python -m cryptotrader --config ${CONTAINER_CONFIG_PATH} execute
panel:
image: cryptotrader/panel
build:
context: ./
dockerfile: docker/panel/Dockerfile
environment:
- FLASK_APP=app.py
- FLASK_DEBUG=1
volumes:
- ./panel:/usr/src
- ./test.yaml:/usr/src/config.yaml
networks:
- cryptotrader-panel-network
ports:
- 5000:5000
depends_on:
- db
command: flask run --host=0.0.0.0
panel-js:
image: cryptotrader/panel-js
build:
context: ./
dockerfile: docker/paneljs/Dockerfile
volumes:
- ./panel/front/js:/js
- ./panel/static:/build
- ./panel/package.json:/package.json
command: npm run build
# don't use this container in prod!
# It not preserves db data.
db:
image: timescale/timescaledb
environment:
POSTGRES_USER: cryptotrader
POSTGRES_PASSWORD: test
networks:
- cryptotrader-bot-network
- cryptotrader-panel-network
volumes:
- $DB_DATA_PATH:/var/lib/postgresql/data
migrate:
image: cryptotrader/migrate
build:
context: .
dockerfile: docker/migrate/Dockerfile
environment:
- CONFIG_PATH=${CONTAINER_CONFIG_PATH}
volumes:
- ./migrations:/usr/migrations
- ${HOST_CONFIG_PATH}:${CONTAINER_CONFIG_PATH}
networks:
- cryptotrader-bot-network
depends_on:
- db
redis:
image: redis
networks:
- cryptotrader-bot-network
pdd-lint:
image: fidals/pdd-ci
command: pdd --verbose -f report.xml
working_dir: /usr/src
volumes:
- ./:/usr/src
coala:
image: cryptotrader/coala
build:
context: .
dockerfile: docker/coala/Dockerfile
working_dir: /usr/src
volumes:
- ./:/usr/src
mypy:
image: cryptotrader/mypy
build:
context: .
dockerfile: docker/mypy/Dockerfile
working_dir: /usr/src
volumes:
- ./:/usr/src
networks:
cryptotrader-bot-network:
cryptotrader-panel-network: