-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose_dev.yaml
177 lines (162 loc) · 4.42 KB
/
docker-compose_dev.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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
version: "3.7"
services:
redis:
image: 'daocloud.io/quantaxis/qaredis:latest'
ports:
- "6379:6379"
env_file: env.env
command: ['redis-server']
restart: always
postgres:
image: postgres:11
env_file: env.env
volumes:
- pg-data:/var/lib/postgresql/data
# ports:
# - "5432:5432"
restart: always
mgdb:
image: mongo:4.1.10-bionic
ports:
- "27017:27017"
env_file: env.env
volumes:
- qamg:/data/db
restart: always
qaeventmq:
image: daocloud.io/quantaxis/qaeventmq:latest
ports:
- "15672:15672"
- "5672:5672"
- "4369:4369"
env_file: env.env
restart: always
qa:
image: daocloud.io/quantaxis/qacommunity:latest
container_name: qacommunity
depends_on:
- mgdb
- qaeventmq
ports:
- "8888:8888"
- "81:80"
env_file: env.env
volumes:
- qacode:/home
- qadag:/dag
restart: always
qacron:
image: barretthugh/qa-custom-cron
env_file: env.env
restart: always
qaweb_run:
image: daocloud.io/quantaxis/qarun:latest
container_name: qarun
depends_on:
- mgdb
- qaeventmq
ports:
- "8010:8010"
env_file: env.env
restart: always
depends_on:
- qaeventmq
- mgdb
command: ['/root/wait_for_it.sh', 'qaeventmq:15672', '--' , "/root/runcelery.sh"]
qamonitor:
image: daocloud.io/quantaxis/qa-monitor:latest
ports:
- "61209:61209"
- "61208:61208"
pid: "host"
restart: always
qactpbeebroker:
image: daocloud.io/quantaxis/qactpbeebroker:latest
ports:
- "5000:5000"
env_file: env.env
command: ['/root/wait_for_it.sh', 'qaeventmq:15672', '--' , "QACTPBEE", "--userid", "$${CTPBEEuserid}", "--password", '$${CTPBEEpassword}']
qamarketcollector:
image: daocloud.io/quantaxis/qarealtimecollector:latest
ports:
- "8011:8011"
depends_on:
- mgdb
- qaeventmq
env_file: env.env
command:
['/root/QUANTAXIS_RealtimeCollector/docker/wait_for_it.sh', 'qaeventmq:5672', '--' ,'a']
qaclickhouse:
image: daocloud.io/quantaxis/qa-clickhouse
ports:
- "9000:9000"
- "8123:8123"
- "9009:9009"
env_file: env.env
webserver:
image: puckel/docker-airflow
restart: always
depends_on:
- postgres
- redis
env_file: env.env
# - REDIS_PASSWORD=redispass
volumes:
- qadag:/usr/local/airflow/dags
# Uncomment to include custom plugins
# - ./plugins:/usr/local/airflow/plugins
ports:
- "8181:8080"
command: webserver
healthcheck:
test: ["CMD-SHELL", "[ -f /usr/local/airflow/airflow-webserver.pid ]"]
interval: 30s
timeout: 30s
retries: 3
flower:
image: puckel/docker-airflow
restart: always
depends_on:
- redis
env_file: env.env
# - REDIS_PASSWORD=redispass
ports:
- "5555:5555"
command: flower
scheduler:
image: puckel/docker-airflow
restart: always
depends_on:
- webserver
volumes:
- qadag:/usr/local/airflow/dags
# Uncomment to include custom plugins
# - ./plugins:/usr/local/airflow/plugins
env_file: env.env
# - REDIS_PASSWORD=redispass
command: scheduler
worker:
image: puckel/docker-airflow
restart: always
depends_on:
- scheduler
volumes:
- qadag:/usr/local/airflow/dags
# Uncomment to include custom plugins
# - ./plugins:/usr/local/airflow/plugins
env_file: env.env
# - REDIS_PASSWORD=redispass
command: worker
volumes:
qamg:
external:
name: qamg
qacode:
external:
name: qacode
pg-data:
external:
name: pg-data
qadag:
external:
name: qadag