Update docker compose config

This commit is contained in:
Viet Anh Nguyen 2023-12-14 14:13:27 +07:00
parent 95aee4310d
commit 08e40148b7

View File

@ -11,9 +11,7 @@ services:
shm_size: 10gb shm_size: 10gb
dockerfile: Dockerfile dockerfile: Dockerfile
shm_size: 10gb shm_size: 10gb
# mem_limit: 8g
restart: always restart: always
# container_name: "sidp-cope2n-ai-fi-sbt"
networks: networks:
- ctel-sbt - ctel-sbt
privileged: true privileged: true
@ -40,9 +38,6 @@ services:
build: build:
context: cope2n-api context: cope2n-api
dockerfile: Dockerfile dockerfile: Dockerfile
# ports:
# - 9880:9000
# container_name: "sidp-cope2n-be-ctel-sbt"
environment: environment:
- MEDIA_ROOT=${MEDIA_ROOT} - MEDIA_ROOT=${MEDIA_ROOT}
- DB_ENGINE=${DB_ENGINE} - DB_ENGINE=${DB_ENGINE}
@ -89,9 +84,6 @@ services:
gunicorn fwd.asgi:application -k uvicorn.workers.UvicornWorker --timeout 300 -b 0.0.0.0:9000" # pre-makemigrations on prod gunicorn fwd.asgi:application -k uvicorn.workers.UvicornWorker --timeout 300 -b 0.0.0.0:9000" # pre-makemigrations on prod
minio: minio:
image: minio/minio image: minio/minio
ports:
- 9886:9884
- 9887:9885
environment: environment:
- MINIO_ROOT_USER=${S3_ACCESS_KEY} - MINIO_ROOT_USER=${S3_ACCESS_KEY}
- MINIO_ROOT_PASSWORD=${S3_SECRET_KEY} - MINIO_ROOT_PASSWORD=${S3_SECRET_KEY}
@ -129,12 +121,6 @@ services:
- ctel-sbt - ctel-sbt
be-celery-sbt: be-celery-sbt:
# build:
# context: cope2n-api
# dockerfile: Dockerfile
# args:
# - "UID=${UID:-1000}"
# - "GID=${GID:-1000}"
build: build:
context: cope2n-api context: cope2n-api
dockerfile: Dockerfile dockerfile: Dockerfile