make compose automatically restart
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
version: "3"
|
version: "3"
|
||||||
services:
|
services:
|
||||||
backend:
|
backend:
|
||||||
|
restart: always
|
||||||
build:
|
build:
|
||||||
target: app # choose a stage to use
|
target: app # choose a stage to use
|
||||||
ports:
|
ports:
|
||||||
@@ -11,6 +12,7 @@ services:
|
|||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
frontend:
|
frontend:
|
||||||
|
restart: always
|
||||||
build:
|
build:
|
||||||
context: ../sorvor-front
|
context: ../sorvor-front
|
||||||
args:
|
args:
|
||||||
@@ -18,6 +20,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 3002:3000
|
- 3002:3000
|
||||||
minio:
|
minio:
|
||||||
|
restart: always
|
||||||
image: quay.io/minio/minio
|
image: quay.io/minio/minio
|
||||||
command: server /data --console-address ":9001"
|
command: server /data --console-address ":9001"
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
Reference in New Issue
Block a user