From dc6dccec15d60a95563a91fef6769e6dd1c3b62d Mon Sep 17 00:00:00 2001 From: Shlee Date: Wed, 22 May 2019 01:15:15 +0800 Subject: [PATCH 1/2] Update docker-compose.yml --- docker-compose.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index cab45b558..9f727149f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -16,6 +16,7 @@ services: # Comment to use dockerhub image build: . image: pixelfed + restart: always ## If you have a traefik running, uncomment this to expose Pixelfed # labels: # - traefik.enable=true @@ -37,6 +38,7 @@ services: # Comment to use dockerhub image build: . image: pixelfed + restart: always env_file: - ./.env volumes: @@ -49,6 +51,7 @@ services: db: image: mysql:8.0 + restart: always networks: - internal environment: @@ -61,6 +64,7 @@ services: redis: image: redis:5-alpine + restart: always volumes: - "redis-data:/data" networks: From 04077c2ba1ccdb362932b71c47c39a151ae7768e Mon Sep 17 00:00:00 2001 From: Shlee Date: Mon, 3 Jun 2019 10:53:13 +0800 Subject: [PATCH 2/2] Update docker-compose.yml --- docker-compose.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 9f727149f..3d9cccc02 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -16,7 +16,7 @@ services: # Comment to use dockerhub image build: . image: pixelfed - restart: always + restart: unless-stopped ## If you have a traefik running, uncomment this to expose Pixelfed # labels: # - traefik.enable=true @@ -38,7 +38,7 @@ services: # Comment to use dockerhub image build: . image: pixelfed - restart: always + restart: unless-stopped env_file: - ./.env volumes: @@ -51,7 +51,7 @@ services: db: image: mysql:8.0 - restart: always + restart: unless-stopped networks: - internal environment: @@ -64,7 +64,7 @@ services: redis: image: redis:5-alpine - restart: always + restart: unless-stopped volumes: - "redis-data:/data" networks: