diff --git a/deploy/docker-compose-test.yml b/deploy/docker-compose-test.yml index defc0aa8..35aa553b 100644 --- a/deploy/docker-compose-test.yml +++ b/deploy/docker-compose-test.yml @@ -19,6 +19,10 @@ services: image: sub2api:latest container_name: sub2api restart: unless-stopped + ulimits: + nofile: + soft: 100000 + hard: 100000 ports: - "${BIND_HOST:-0.0.0.0}:${SERVER_PORT:-8080}:8080" volumes: @@ -107,6 +111,10 @@ services: image: postgres:18-alpine container_name: sub2api-postgres restart: unless-stopped + ulimits: + nofile: + soft: 100000 + hard: 100000 volumes: - postgres_data:/var/lib/postgresql/data environment: @@ -132,6 +140,10 @@ services: image: redis:7-alpine container_name: sub2api-redis restart: unless-stopped + ulimits: + nofile: + soft: 100000 + hard: 100000 volumes: - redis_data:/data command: > diff --git a/deploy/docker-compose.yml b/deploy/docker-compose.yml index 0e3fb16e..45b3796b 100644 --- a/deploy/docker-compose.yml +++ b/deploy/docker-compose.yml @@ -19,6 +19,10 @@ services: image: weishaw/sub2api:latest container_name: sub2api restart: unless-stopped + ulimits: + nofile: + soft: 100000 + hard: 100000 ports: - "${BIND_HOST:-0.0.0.0}:${SERVER_PORT:-8080}:8080" volumes: @@ -107,6 +111,10 @@ services: image: postgres:18-alpine container_name: sub2api-postgres restart: unless-stopped + ulimits: + nofile: + soft: 100000 + hard: 100000 volumes: - postgres_data:/var/lib/postgresql/data environment: @@ -132,6 +140,10 @@ services: image: redis:7-alpine container_name: sub2api-redis restart: unless-stopped + ulimits: + nofile: + soft: 100000 + hard: 100000 volumes: - redis_data:/data command: >