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