Auto restart for all services

This commit is contained in:
Viet Anh Nguyen 2023-12-15 14:12:23 +07:00
parent 912461882b
commit 8d12826d44
2 changed files with 5 additions and 4 deletions

View File

@ -7,7 +7,7 @@ from fwd_api.models import SubscriptionRequest
from fwd_api.exception.exceptions import InvalidException from fwd_api.exception.exceptions import InvalidException
from fwd_api.models import SubscriptionRequest from fwd_api.models import SubscriptionRequest
from fwd_api.constant.common import ProcessType from fwd_api.constant.common import ProcessType
from fwd_api.utils import redis as RedisUtils from fwd_api.utils.redis import RedisUtils
from fwd_api.utils import process as ProcessUtil from fwd_api.utils import process as ProcessUtil
redis_client = RedisUtils() redis_client = RedisUtils()

View File

@ -93,6 +93,7 @@ services:
- ./data/minio_data:/data - ./data/minio_data:/data
networks: networks:
- ctel-sbt - ctel-sbt
restart: always
command: server --address :9884 --console-address :9885 /data command: server --address :9884 --console-address :9885 /data
profiles: ["local"] profiles: ["local"]
@ -149,11 +150,9 @@ services:
- BASE_URL=http://be-ctel-sbt:${BASE_PORT} - BASE_URL=http://be-ctel-sbt:${BASE_PORT}
- REDIS_HOST=result-cache - REDIS_HOST=result-cache
- REDIS_PORT=6379 - REDIS_PORT=6379
restart: always
networks: networks:
- ctel-sbt - ctel-sbt
# restart: always
depends_on: depends_on:
db-sbt: db-sbt:
condition: service_started condition: service_started
@ -168,6 +167,7 @@ services:
# Back-end persistent # Back-end persistent
db-sbt: db-sbt:
restart: always
mem_reservation: 500m mem_reservation: 500m
# mem_limit: 1g # mem_limit: 1g
# container_name: sidp-cope2n-be-sbt-db # container_name: sidp-cope2n-be-sbt-db
@ -200,6 +200,7 @@ services:
# Front-end services # Front-end services
fe-sbt: fe-sbt:
restart: always
build: build:
context: cope2n-fe context: cope2n-fe
shm_size: 10gb shm_size: 10gb