-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
71 lines (67 loc) · 1.54 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
---
version: '3.9'
# name: ''
services:
emqx:
image: emqx:5
restart: unless-stopped
environment:
- EMQX_NAME=emqx
- EMQX_HOST=emqx.local
- EMQX_LOADED_PLUGINS="emqx_recon,emqx_retainer,emqx_management,emqx_dashboard"
volumes:
- emqx-data:/opt/emqx/data
- emqx-log:/opt/emqx/log
- 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:
tv-wh-mqtt:
aliases:
- emqx.local
healthcheck:
test: ["CMD", "/opt/emqx/bin/emqx_ctl", "status"]
interval: 5s
timeout: 25s
retries: 5
tradingview-webhook-mqtt-bridge:
build: .
container_name: tradingview-webhook-mqtt-bridge
restart: unless-stopped
depends_on:
emqx:
condition: service_healthy
restart: true
ports:
- '80:8080'
environment:
- MQTT_HOST=emqx.local
- MQTT_PORT=1883
- MQTT_USERNAME=
- MQTT_PASSWORD=
- MQTT_TOPIC=tradingview/alerts
- SEC_KEY=123123
command: [
"uvicorn",
"app:app",
"--workers", "4",
"--host", "0.0.0.0",
"--port", "8080",
'--root-path', '/']
networks:
tv-wh-mqtt:
aliases:
- mqtt-bridge.local
networks:
tv-wh-mqtt:
driver: bridge
volumes:
emqx-data: {}
emqx-log: {}
emqx-etc: {}