restart services in docker compose
This commit is contained in:
parent
6292d6c3f0
commit
cf1889c2b8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user