Add restart : unless-stoppped
This commit is contained in:
@@ -13,6 +13,7 @@ services:
|
||||
- POSTGRES_USER=${PGUSER}
|
||||
- POSTGRES_PASSWORD=${PGPASSWORD}
|
||||
- POSTGRES_DB=${PGDATABASE}
|
||||
restart: unless-stopped
|
||||
|
||||
api:
|
||||
container_name: api
|
||||
@@ -28,6 +29,7 @@ services:
|
||||
depends_on:
|
||||
- db
|
||||
command: ./bin/api
|
||||
restart: unless-stopped
|
||||
|
||||
migrator:
|
||||
container_name: migrator
|
||||
@@ -42,6 +44,7 @@ services:
|
||||
volumes:
|
||||
- goose:/migrations
|
||||
command: goose up
|
||||
restart: unless-stopped
|
||||
|
||||
spa:
|
||||
container_name: spa
|
||||
@@ -56,6 +59,7 @@ services:
|
||||
- api
|
||||
- db
|
||||
- migrator
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
api:
|
||||
|
||||
Reference in New Issue
Block a user