diff --git a/docker-compose.yaml b/docker-compose.yaml index 734a040..9a2f779 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -2,7 +2,7 @@ services: office-xbot-app: container_name: office-xbot-app image: "${APP_IMAGE}" - command: "flask --app app:create_app run --debug --port 8080 --host 0.0.0.0" + command: "flask --app app:create_app run --port 8080 --host 0.0.0.0" ports: - "0.0.0.0:8080:8080" environment: @@ -20,6 +20,7 @@ services: - OFFICE_XBOT_TABLE_ID=${OFFICE_XBOT_TABLE_ID} - OFFICE_XBOT_VIEW_ID=${OFFICE_XBOT_VIEW_ID} - TZ=Asia/Shanghai + - MALLOC_ARENA_MAX=2 healthcheck: test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8080/index')"] interval: 30s @@ -31,7 +32,7 @@ services: office-xbot-celery: container_name: office-xbot-celery image: "${APP_IMAGE}" - command: "celery -A app.make_celery worker -B --loglevel INFO" + command: "celery -A app.make_celery worker -B --loglevel INFO --concurrency=2" environment: - APP_ID=${APP_ID} - APP_SECRET=${APP_SECRET} @@ -48,6 +49,7 @@ services: - OFFICE_XBOT_VIEW_ID=${OFFICE_XBOT_VIEW_ID} - FEISHU_GROUP_CHAT_ID=${FEISHU_GROUP_CHAT_ID} - TZ=Asia/Shanghai + - MALLOC_ARENA_MAX=2 healthcheck: test: ["CMD", "celery", "inspect", "ping"] interval: 10s @@ -69,6 +71,7 @@ services: environment: - TZ=Asia/Shanghai + - MALLOC_ARENA_MAX=2 office-xbot-flower: container_name: office-xbot-flower @@ -83,6 +86,7 @@ services: environment: - TZ=Asia/Shanghai + - MALLOC_ARENA_MAX=2 networks: