Added restart=always

Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>
This commit is contained in:
Marko Korhonen 2019-10-27 16:32:31 +02:00
parent 71103b0295
commit 8fedb7b439
No known key found for this signature in database
GPG Key ID: 911B85FBC6003FE5

View File

@ -4,10 +4,10 @@ services:
environment: environment:
TZ: "Europe/Helsinki" TZ: "Europe/Helsinki"
container_name: home-assistant container_name: home-assistant
restart: always
image: homeassistant/home-assistant image: homeassistant/home-assistant
volumes: volumes:
- /homeautomation-config/home-assistant:/config - /homeautomation-config/home-assistant:/config
restart: always
network_mode: host network_mode: host
depends_on: depends_on:
- mariadb - mariadb
@ -16,7 +16,7 @@ services:
mariadb: mariadb:
image: mariadb/server:10.3 image: mariadb/server:10.3
container_name: mariadb container_name: mariadb
restart: unless-stopped restart: always
environment: environment:
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}" MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
MYSQL_DATABASE: ha_db MYSQL_DATABASE: ha_db
@ -48,6 +48,9 @@ services:
node-red: node-red:
container_name: node-red container_name: node-red
image: nodered/node-red image: nodered/node-red
restart: always
environment:
TZ: "Europe/Helsinki"
network_mode: host network_mode: host
ports: ports:
- "1880:1880" - "1880:1880"
@ -55,13 +58,11 @@ services:
- /homeautomation-config/node-red:/data - /homeautomation-config/node-red:/data
depends_on: depends_on:
- home-assistant - home-assistant
environment:
TZ: "Europe/Helsinki"
restart: unless-stopped
portainer: portainer:
container_name: portainer container_name: portainer
image: portainer/portainer image: portainer/portainer
restart: always
ports: ports:
- "9000:9000" - "9000:9000"
volumes: volumes: