From d3545d93a5cbae759c45e33c3a49a5972bc33f32 Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Wed, 16 Sep 2020 14:21:41 +0200 Subject: [PATCH] Add restart policy --- docker-compose.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 1722239b..ae210132 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,6 +15,7 @@ services: - redis env_file: .env image: nopaque/web + restart: unless-stopped volumes: - "./logs:/home/nopaque/logs" - "${NOPAQUE_STORAGE}:${NOPAQUE_STORAGE}" @@ -30,6 +31,7 @@ services: - web env_file: .env image: nopaque/daemon + restart: unless-stopped volumes: - "/var/run/docker.sock:/var/run/docker.sock" - "./logs:/home/nopaqued/logs" @@ -37,9 +39,11 @@ services: db: env_file: .env image: postgres:11 + restart: unless-stopped volumes: - "/srv/nopaque/db:/var/lib/postgresql/data" redis: image: redis:6 + restart: unless-stopped volumes: - "redis-trash1:/data"