From cf1889c2b85909920d20c3dc550e733acfb367cd Mon Sep 17 00:00:00 2001 From: andy Date: Sun, 20 Mar 2022 09:48:16 +0000 Subject: [PATCH] restart services in docker compose --- docker-compose.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 1e7e832..f0d906f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,6 +2,7 @@ version: "3.9" services: web: image: sarsoo/selector-web:latest + restart: unless-stopped ports: - "8080:80" depends_on: @@ -14,6 +15,7 @@ services: cli: image: sarsoo/selector-cli:latest + restart: unless-stopped depends_on: - database - redis @@ -24,10 +26,12 @@ services: redis: image: redis:alpine + restart: unless-stopped ports: - "6379:6379" database: image: postgres + restart: unless-stopped ports: - "5432:5432" env_file: .env # set POSTGRES_USER, POSTGRES_PASSWORD, POSTGRES_DB