make compose automatically restart

This commit is contained in:
2024-04-20 12:26:48 +07:00
parent 4595e1c9ed
commit ed8c0e77f2

View File

@@ -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: