From 19615a2c3732b8a96fb9007a1d50ec553cdf43ed 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 59e0e549680..9f91268051a 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