forked from mtusi2026/mtusi2026lab3
fix reproducibility
This commit is contained in:
+9
-2
@@ -50,6 +50,8 @@ services:
|
||||
CACHE_URL_FILE: /run/secrets/cache_url
|
||||
IDEMPOTENCY_TTL_SECONDS: ${IDEMPOTENCY_TTL_SECONDS:-86400}
|
||||
DRAIN_SECONDS: ${DRAIN_SECONDS:-2}
|
||||
HTTP_WORKERS: ${HTTP_WORKERS:-8}
|
||||
DB_POOL_SIZE: ${DB_POOL_SIZE:-8}
|
||||
secrets:
|
||||
- database_url
|
||||
- cache_url
|
||||
@@ -64,7 +66,7 @@ services:
|
||||
resources:
|
||||
limits:
|
||||
cpus: ${API_CPU_LIMIT:-0.50}
|
||||
memory: ${API_MEM_LIMIT:-256M}
|
||||
memory: ${API_MEM_LIMIT:-256m}
|
||||
cpus: ${API_CPU_LIMIT:-0.50} # для совместимости с docker compose up
|
||||
mem_limit: ${API_MEM_LIMIT:-256m}
|
||||
stop_grace_period: 15s
|
||||
@@ -76,8 +78,13 @@ services:
|
||||
condition: service_healthy
|
||||
ports:
|
||||
- "8080:8080"
|
||||
environment:
|
||||
NGINX_WORKERS: ${NGINX_WORKERS:-1}
|
||||
NGINX_ENVSUBST_TEMPLATE_DIR: /etc/nginx/templates
|
||||
NGINX_ENVSUBST_OUTPUT_DIR: /etc/nginx
|
||||
NGINX_ENVSUBST_FILTER: "^NGINX_"
|
||||
volumes:
|
||||
- ./lb/nginx.conf:/etc/nginx/nginx.conf:ro
|
||||
- ./lb/nginx.conf.template:/etc/nginx/templates/nginx.conf.template:ro
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:8080/health/ready"]
|
||||
interval: 5s
|
||||
|
||||
Reference in New Issue
Block a user