From 3aa24ff5f24afe59e61f20cb976dbe86499d9f22 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 21 Nov 2019 11:29:59 -0800 Subject: [PATCH] Adding restart=always to other docker services. --- docker/dev/docker-compose.yml | 2 ++ docker/prod/docker-compose.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/docker/dev/docker-compose.yml b/docker/dev/docker-compose.yml index 118501f4..4f8e5364 100644 --- a/docker/dev/docker-compose.yml +++ b/docker/dev/docker-compose.yml @@ -9,6 +9,7 @@ services: - POSTGRES_DB=lemmy volumes: - lemmy_db:/var/lib/postgresql/data + restart: always lemmy: build: context: ../../ @@ -39,6 +40,7 @@ services: - "127.0.0.1:8537:80" volumes: - lemmy_pictshare:/usr/share/nginx/html/data + restart: always volumes: lemmy_db: lemmy_pictshare: diff --git a/docker/prod/docker-compose.yml b/docker/prod/docker-compose.yml index 1e018e44..56005b3c 100644 --- a/docker/prod/docker-compose.yml +++ b/docker/prod/docker-compose.yml @@ -9,6 +9,7 @@ services: - POSTGRES_DB=lemmy volumes: - lemmy_db:/var/lib/postgresql/data + restart: always lemmy: image: dessalines/lemmy:v0.4.0.2 ports: @@ -37,6 +38,7 @@ services: - "127.0.0.1:8537:80" volumes: - lemmy_pictshare:/usr/share/nginx/html/data + restart: always volumes: lemmy_db: lemmy_pictshare: