-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcore-volumes.compose.yml
167 lines (157 loc) · 4 KB
/
core-volumes.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
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
name: hummingbot-core
services:
db:
image: ${DB_IMAGE:-postgres:13}
container_name: hbot-db
restart: unless-stopped
ports:
- "5432:5432"
environment:
- POSTGRES_DB=${DB_NAME:-postgres}
- POSTGRES_USER=${DB_USER:-postgres}
- POSTGRES_PASSWORD=${DB_PASSWORD:-postgres}
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- hbot-db-data:/var/lib/postgresql/data/pgdata
networks:
- hbotnet
profiles: ['db']
gateway:
image: hummingbot/gateway:latest
container_name: hbot-gateway
restart: unless-stopped
ports:
- ${GW_DOCS_PORT:-8080}:8080
- ${GW_PORT:-15888}:15888
volumes:
- type: volume
source: hbot-gateway-conf
target: /home/gateway/conf
- type: volume
source: hbot-gateway-logs
target: /home/gateway/logs
- type: volume
source: hbot-gateway-certs
target: /home/gateway/certs
- type: volume
source: hbot-gateway-db
target: /home/gateway/db
environment:
- GATEWAY_PASSPHRASE=${GW_PASSPHRASE:-123}
networks:
hbotnet:
aliases:
- gateway.local
profiles: ['gateway', 'all']
emqx1:
image: ${MQTT_EMQX_IMAGE:-emqx:5}
restart: unless-stopped
container_name: hbot-emqx-1
environment:
- EMQX_NAME=emqx
- EMQX_HOST=node1.emqx.local
- EMQX_CLUSTER__DISCOVERY_STRATEGY=static
- EMQX_CLUSTER__STATIC__SEEDS=[[email protected]]
- EMQX_LOADED_PLUGINS="emqx_recon,emqx_retainer,emqx_management,emqx_dashboard"
volumes:
- hbot-emqx-data:/opt/emqx/data
- hbot-emqx-log:/opt/emqx/log
- hbot-emqx-etc:/opt/emqx/etc
ports:
- "1883:1883" # mqtt:tcp
- "8883:8883" # mqtt:tcp:ssl
- "8083:8083" # mqtt:ws
- "8084:8084" # mqtt:ws:ssl
- "8081:8081" # http:management
- "18083:18083" # http:dashboard
- "61613:61613" # web-stomp gateway
networks:
hbotnet:
aliases:
- node1.emqx.local
healthcheck:
test: ["CMD", "/opt/emqx/bin/emqx_ctl", "status"]
interval: 5s
timeout: 25s
retries: 10
profiles: ['mqtt', 'all']
tradingview-mqtt-bridge:
image: ${TV_BRIDGE_IMAGE:-klpanagi/tradingview-mqtt-bridge:latest}
container_name: tradingview-mqtt-bridge
restart: unless-stopped
depends_on:
emqx1:
condition: service_healthy
restart: true
ports:
- '8082:8080'
environment:
- SEC_KEY=${TV_BRIDGE_SEC_KEY:-123123}
- MQTT_HOST=node1.emqx.local
- MQTT_PORT=1883
- MQTT_USERNAME=
- MQTT_PASSWORD=
- MQTT_TOPIC=${TV_BRIDGE_MQTT_TOPIC:-tradingview/alerts}
command: [
"uvicorn",
"app:app",
"--workers", "${TV_BRIDGE_WORKERS:-2}",
"--host", "0.0.0.0",
"--port", "8080",
'--root-path', '']
networks:
hbotnet:
aliases:
- tv-mqtt-bridge.local
profiles: ['tradingview']
dashboard:
image: hummingbot/dashboard:latest
container_name: hbot-dashboard
restart: unless-stopped
networks:
hbotnet:
aliases:
- dashboard.local
volumes:
- ./hummingbot_files/data:/home/dashboard/data
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 8501:8501
profiles: ['dashboard']
volumes:
hbot-gateway-certs:
name: hbot-gateway-certs
driver: local
driver_opts: {}
hbot-gateway-conf:
name: hbot-gateway-conf
driver: local
driver_opts: {}
hbot-gateway-logs:
name: hbot-gateway-logs
driver: local
driver_opts: {}
hbot-gateway-db:
name: hbot-gateway-db
driver: local
driver_opts: {}
hbot-db-data:
name: hbot-db-data
driver: local
driver_opts: {}
hbot-emqx-data:
name: hbot-emqx-data
driver: local
driver_opts: {}
hbot-emqx-log:
name: hbot-emqx-log
driver: local
driver_opts: {}
hbot-emqx-etc:
name: hbot-emqx-etc
driver: local
driver_opts: {}
networks:
hbotnet:
name: hbotnet
driver: bridge