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.models import SubscriptionRequest
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
redis_client = RedisUtils()

View File

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