mirror of
https://github.com/furyhawk/cloudy.git
synced 2026-05-22 07:56:49 +00:00
Update Docker compose command to include EMQX services
This commit is contained in:
@@ -26,8 +26,8 @@ This simple project uses Traefik as a reverse proxy to a Streamlit application a
|
|||||||
## Production Deployment
|
## Production Deployment
|
||||||
1. In `compose/traefik/traefik.yml`, change `example@test.com` to your email.
|
1. In `compose/traefik/traefik.yml`, change `example@test.com` to your email.
|
||||||
2. In `compose/traefik/traefik.yml`, change `example.com` to your domain.
|
2. In `compose/traefik/traefik.yml`, change `example.com` to your domain.
|
||||||
3. `docker compose -f production.yml -f ./flarum/docker-compose.yml -f ./LibreChat/docker-compose.yml -f ./LibreChat/docker-compose.override.yml up --build -d`
|
3. `docker compose -f production.yml -f ./flarum/docker-compose.yml -f ./emqx-docker/docker-compose.yml -f ./LibreChat/docker-compose.yml -f ./LibreChat/docker-compose.override.yml up --build -d`
|
||||||
4. `docker compose -f production.yml -f ./flarum/docker-compose.yml -f ./LibreChat/docker-compose.yml -f ./LibreChat/docker-compose.override.yml down --remove-orphans`
|
4. `docker compose -f production.yml -f ./flarum/docker-compose.yml -f ./emqx-docker/docker-compose.yml -f ./LibreChat/docker-compose.yml -f ./LibreChat/docker-compose.override.yml down --remove-orphans`
|
||||||
|
|
||||||
### Notes:
|
### Notes:
|
||||||
```yaml
|
```yaml
|
||||||
|
|||||||
+60
-59
@@ -11,10 +11,10 @@ x-environment: &default-environment
|
|||||||
volumes:
|
volumes:
|
||||||
production_traefik: {}
|
production_traefik: {}
|
||||||
portainer_data: {}
|
portainer_data: {}
|
||||||
vol-emqx-data1:
|
# vol-emqx-data1:
|
||||||
name: foo-emqx-data1
|
# name: foo-emqx-data1
|
||||||
vol-emqx-data2:
|
# vol-emqx-data2:
|
||||||
name: foo-emqx-data2
|
# name: foo-emqx-data2
|
||||||
|
|
||||||
services:
|
services:
|
||||||
osrm-backend:
|
osrm-backend:
|
||||||
@@ -36,61 +36,62 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- net
|
- net
|
||||||
- default
|
- default
|
||||||
emqx1:
|
|
||||||
image: emqx:latest
|
|
||||||
container_name: emqx1
|
|
||||||
environment:
|
|
||||||
- "EMQX_NODE_NAME=emqx@node1.emqx.io"
|
|
||||||
- "EMQX_CLUSTER__DISCOVERY_STRATEGY=static"
|
|
||||||
- "EMQX_CLUSTER__STATIC__SEEDS=[emqx@node1.emqx.io,emqx@node2.emqx.io]"
|
|
||||||
healthcheck:
|
|
||||||
test: ["CMD", "/opt/emqx/bin/emqx", "ctl", "status"]
|
|
||||||
interval: 5s
|
|
||||||
timeout: 25s
|
|
||||||
retries: 5
|
|
||||||
networks:
|
|
||||||
net:
|
|
||||||
emqx-bridge:
|
|
||||||
aliases:
|
|
||||||
- node1.emqx.io
|
|
||||||
ports:
|
|
||||||
- 1883:1883
|
|
||||||
- 8083:8083
|
|
||||||
- 8084:8084
|
|
||||||
- 8883:8883
|
|
||||||
- 18083:18083
|
|
||||||
volumes:
|
|
||||||
- vol-emqx-data1:/opt/emqx/data
|
|
||||||
|
|
||||||
emqx2:
|
# emqx1:
|
||||||
image: emqx:latest
|
# image: emqx:latest
|
||||||
container_name: emqx2
|
# container_name: emqx1
|
||||||
environment:
|
# environment:
|
||||||
- "EMQX_NODE_NAME=emqx@node2.emqx.io"
|
# - "EMQX_NODE_NAME=emqx@node1.emqx.io"
|
||||||
- "EMQX_CLUSTER__DISCOVERY_STRATEGY=static"
|
# - "EMQX_CLUSTER__DISCOVERY_STRATEGY=static"
|
||||||
- "EMQX_CLUSTER__STATIC__SEEDS=[emqx@node1.emqx.io,emqx@node2.emqx.io]"
|
# - "EMQX_CLUSTER__STATIC__SEEDS=[emqx@node1.emqx.io,emqx@node2.emqx.io]"
|
||||||
healthcheck:
|
# healthcheck:
|
||||||
test: ["CMD", "/opt/emqx/bin/emqx", "ctl", "status"]
|
# test: ["CMD", "/opt/emqx/bin/emqx", "ctl", "status"]
|
||||||
interval: 5s
|
# interval: 5s
|
||||||
timeout: 25s
|
# timeout: 25s
|
||||||
retries: 5
|
# retries: 5
|
||||||
networks:
|
# networks:
|
||||||
emqx-bridge:
|
# net:
|
||||||
aliases:
|
# emqx-bridge:
|
||||||
- node2.emqx.io
|
# aliases:
|
||||||
volumes:
|
# - node1.emqx.io
|
||||||
- vol-emqx-data2:/opt/emqx/data
|
# ports:
|
||||||
|
# - 1883:1883
|
||||||
|
# - 8083:8083
|
||||||
|
# - 8084:8084
|
||||||
|
# - 8883:8883
|
||||||
|
# - 18083:18083
|
||||||
|
# volumes:
|
||||||
|
# - vol-emqx-data1:/opt/emqx/data
|
||||||
|
|
||||||
mqttx-web:
|
# emqx2:
|
||||||
image: emqx/mqttx-web:latest
|
# image: emqx:latest
|
||||||
container_name: mqttx_web
|
# container_name: emqx2
|
||||||
restart: unless-stopped
|
# environment:
|
||||||
expose:
|
# - "EMQX_NODE_NAME=emqx@node2.emqx.io"
|
||||||
- 80
|
# - "EMQX_CLUSTER__DISCOVERY_STRATEGY=static"
|
||||||
networks:
|
# - "EMQX_CLUSTER__STATIC__SEEDS=[emqx@node1.emqx.io,emqx@node2.emqx.io]"
|
||||||
- emqx-bridge
|
# healthcheck:
|
||||||
- net
|
# test: ["CMD", "/opt/emqx/bin/emqx", "ctl", "status"]
|
||||||
- default
|
# interval: 5s
|
||||||
|
# timeout: 25s
|
||||||
|
# retries: 5
|
||||||
|
# networks:
|
||||||
|
# emqx-bridge:
|
||||||
|
# aliases:
|
||||||
|
# - node2.emqx.io
|
||||||
|
# volumes:
|
||||||
|
# - vol-emqx-data2:/opt/emqx/data
|
||||||
|
|
||||||
|
# mqttx-web:
|
||||||
|
# image: emqx/mqttx-web:latest
|
||||||
|
# container_name: mqttx_web
|
||||||
|
# restart: unless-stopped
|
||||||
|
# expose:
|
||||||
|
# - 80
|
||||||
|
# networks:
|
||||||
|
# - emqx-bridge
|
||||||
|
# - net
|
||||||
|
# - default
|
||||||
|
|
||||||
heynote-app:
|
heynote-app:
|
||||||
image: furyhawk/heynote:${HEYNOTETAG:-latest}
|
image: furyhawk/heynote:${HEYNOTETAG:-latest}
|
||||||
@@ -224,8 +225,8 @@ services:
|
|||||||
- "443:443"
|
- "443:443"
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
emqx-bridge:
|
# emqx-bridge:
|
||||||
driver: bridge
|
# driver: bridge
|
||||||
net:
|
net:
|
||||||
external: true
|
external: true
|
||||||
name: ${NETWORK:-web}
|
name: ${NETWORK:-web}
|
||||||
Reference in New Issue
Block a user