Fixed network setup for docker deploy
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Dreaded_X 2022-11-15 01:10:52 +01:00
parent dd03ae56ee
commit ad5b8f9d29
Signed by: Dreaded_X
GPG Key ID: 76BDEC4E165D8AD9

View File

@ -38,7 +38,10 @@ steps:
- docker rm automation || true - docker rm automation || true
- docker run -e MQTT_HOST=$MQTT_HOST -e MQTT_PORT=$MQTT_PORT -e MQTT_USER=$MQTT_USER -e MQTT_PASS=$MQTT_PASS -e MQTT_CLIENT_ID=$MQTT_CLIENT_ID -e HUE_IP=$HUE_IP -e HUE_BRIDGE=$HUE_BRIDGE -e NTFY_TOPIC=$NTFY_TOPIC -e GOOGLE_CREDENTIALS=$GOOGLE_CREDENTIALS --network mqtt --network web --name automation -d automation - docker create -e MQTT_HOST=$MQTT_HOST -e MQTT_PORT=$MQTT_PORT -e MQTT_USER=$MQTT_USER -e MQTT_PASS=$MQTT_PASS -e MQTT_CLIENT_ID=$MQTT_CLIENT_ID -e HUE_IP=$HUE_IP -e HUE_BRIDGE=$HUE_BRIDGE -e NTFY_TOPIC=$NTFY_TOPIC -e GOOGLE_CREDENTIALS=$GOOGLE_CREDENTIALS --network mqtt --name automation automation
- docker network connect mqtt automation
- docker network connect web automation
- docker start automation
when: when:
branch: branch: