31 lines
892 B
YAML
31 lines
892 B
YAML
services:
|
|
watchtower:
|
|
image: containrrr/watchtower
|
|
command:
|
|
- "--label-enable"
|
|
- "--interval"
|
|
- "30"
|
|
- "--rolling-restart"
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
mqtt-gateway:
|
|
image: fduerrwald/awekas:latest
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.mqtt-gateway.rule=Host(`ws.mplabshome.net`)"
|
|
- "traefik.http.routers.mqtt-gateway.entrypoints=web"
|
|
- "com.centurylinklabs.watchtower.enable=true"
|
|
environment:
|
|
- AWEKAS_ID=${AWEKAS_ID}
|
|
- AWEKAS_PASSWORD=${AWEKAS_PASSWORD}
|
|
- MPLABS_ID=${MPLABS_ID}
|
|
- MPLABS_PASSWORD=${MPLABS_PASSWORD}
|
|
- MQTT_BROKER_URL=${MQTT_BROKER_URL:-mqtt://127.0.0.1:1883}
|
|
- MQTT_TOPIC=${MQTT_TOPIC:-weather}
|
|
deploy:
|
|
mode: replicated
|
|
replicas: 3
|
|
restart: always
|