@@ -23,6 +23,10 @@ x-default-deploy: &default-deploy services: app: <<: *app-config + ulimits: + nofile: + soft: 98304 + hard: 98304 build: context: . dockerfile: Dockerfile @@ -85,6 +89,10 @@ services: housekeeper: <<: *app-config + ulimits: + nofile: + soft: 98304 + hard: 98304 deploy: replicas: 1 <<: [*default-deploy] @@ -99,6 +107,10 @@ services: celery: <<: *app-config + ulimits: + nofile: + soft: 98304 + hard: 98304 command: celery -A backend worker -l INFO --concurrency 3 deploy: replicas: 1 @@ -111,6 +123,10 @@ services: celery-beat: <<: *app-config + ulimits: + nofile: + soft: 98304 + hard: 98304 command: celery -A backend beat -l INFO deploy: replicas: 1 @@ -119,6 +135,10 @@ services: static-server: image: nginx:alpine + ulimits: + nofile: + soft: 98304 + hard: 98304 command: - /bin/sh - -c @@ -152,18 +172,30 @@ services: cache-mdb: image: redis:alpine + ulimits: + nofile: + soft: 98304 + hard: 98304 deploy: replicas: 1 <<: [*default-deploy] celery-mdb: image: redis:alpine + ulimits: + nofile: + soft: 98304 + hard: 98304 deploy: replicas: 1 <<: [*default-deploy] channels-mdb: image: redis:alpine + ulimits: + nofile: + soft: 98304 + hard: 98304 deploy: replicas: 1 <<: [*default-deploy]