forked from jchomaz/Vulture
gestion d'une config pour les ip si prod ou dev
This commit is contained in:
@@ -17,7 +17,7 @@ echo "Starting NanoMQ..."
|
||||
# NanoMQ needs to expose ports for external access (e.g. VApp frontend) and be on the network for VNode
|
||||
podman run -dt --rm --network $NETWORK_NAME --name nanomq \
|
||||
-p 1883:1883 -p 9001:9001 -p 8081:8081 -p 8083:8083 -p 8883:8883 \
|
||||
-v ./VContainers/MQTT/config/nanomq.conf:/etc/nanomq.conf \
|
||||
-v ./VContainers/MQTT/config/nanomq.conf:/etc/nanomq.conf:Z \
|
||||
docker.io/emqx/nanomq:latest --conf /etc/nanomq.conf
|
||||
|
||||
echo "Starting VNode..."
|
||||
@@ -26,6 +26,8 @@ podman run -dt --rm --network $NETWORK_NAME --name vnode vnode:latest
|
||||
|
||||
echo "Starting VApp..."
|
||||
# VApp (nginx) needs port 80 exposed
|
||||
podman run -dt --rm --network $NETWORK_NAME --name vapp -p 8080:80 vapp:latest
|
||||
podman run -dt --rm --network $NETWORK_NAME --name vapp -p 8080:80 \
|
||||
-v ./VContainers/VApp/config/config.js:/usr/share/nginx/html/config.js:Z \
|
||||
vapp:latest
|
||||
|
||||
echo "All containers started on network $NETWORK_NAME."
|
||||
|
||||
Reference in New Issue
Block a user