From 9ce2dea2c864de7a108b3a00bc56728606e04f4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Wed, 16 Feb 2022 16:14:08 +0200 Subject: [PATCH] Add restart-always to docker compose containers --- docker-compose.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index d8038bd1..9f9c4042 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,6 +4,7 @@ services: xhgui: # https://hub.docker.com/r/xhgui/xhgui/tags image: xhgui/xhgui:latest + restart: always volumes: - ./config:/var/www/xhgui/config - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro @@ -17,6 +18,7 @@ services: image: percona/percona-server-mongodb:3.6 # (case sensitive) engine: mmapv1, rocksdb, wiredTiger, inMemory command: --storageEngine=wiredTiger + restart: always environment: - MONGO_INITDB_DATABASE=xhprof volumes: