From bd362f8b399e77edb9ee06016ab6d3120bc903ae Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Tue, 25 Oct 2016 13:21:48 +0200 Subject: [PATCH] Add restart policy to docker compose --- docker-compose.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 59e0e54968..9f91268051 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,14 +1,18 @@ version: '2' services: db: + restart: always image: postgres redis: + restart: always image: redis neo4j: + restart: always build: context: . dockerfile: Dockerfile.neo4j web: + restart: always build: context: . dockerfile: Dockerfile.app @@ -24,6 +28,7 @@ services: - ./public/assets:/mastodon/public/assets - ./public/system:/mastodon/public/system sidekiq: + restart: always build: context: . dockerfile: Dockerfile.app