From 2bab0370fa4313bc1c24bcbc02e23a13e72af0ee 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 118501f4c..4f8e53644 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 1e018e44c..56005b3cd 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: