From 3dd2440afa7cc02925592a344d6a7f7c1c7000b6 Mon Sep 17 00:00:00 2001 From: PhanThanhTrung Date: Thu, 31 Oct 2024 13:08:10 +0700 Subject: [PATCH] update docker-compose dev --- docker-compose-dev.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/docker-compose-dev.yml b/docker-compose-dev.yml index a0ad4be..0fc7ff2 100755 --- a/docker-compose-dev.yml +++ b/docker-compose-dev.yml @@ -30,14 +30,10 @@ services: reservations: devices: - driver: nvidia - count: 1 + count: all capabilities: [gpu] - # command: bash -c "tail -f > /dev/null" command: bash run.sh - # deploy: - # mode: replicated - # replicas: 1 - # Back-end services + be-ctel-sbt: build: context: cope2n-api @@ -98,7 +94,6 @@ services: python manage.py migrate && python manage.py compilemessages && gunicorn fwd.asgi:application -k uvicorn.workers.UvicornWorker --timeout 300 -b 0.0.0.0:9000" # pre-makemigrations on prod - # command: "sleep infinity" minio: image: minio/minio @@ -186,7 +181,7 @@ services: - ./cope2n-api:/app working_dir: /app - command: sh -c "celery -A fwd_api.celery_worker.worker worker -l INFO -c 5" + command: sh -c "celery -A fwd worker -l INFO -c 5" # command: bash -c "tail -f > /dev/null" # Back-end persistent @@ -274,4 +269,4 @@ volumes: db_data: BE_static: BE_media: - BE_log: \ No newline at end of file + BE_log: