From 76034fa7608a519ef0b0a97404a634fe24e03770 Mon Sep 17 00:00:00 2001 From: gunshiz Date: Tue, 7 Jul 2026 19:44:30 +0700 Subject: [PATCH] fix(backend) : add .env to docker and longer timeout time --- docker-compose.yml | 2 ++ nginx.conf | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 7644dc1..ed64e44 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,6 +6,8 @@ services: - "3000" deploy: replicas: 3 + env_file: + .env nginx: image: nginx:alpine diff --git a/nginx.conf b/nginx.conf index 1262781..2ff810e 100644 --- a/nginx.conf +++ b/nginx.conf @@ -38,9 +38,9 @@ http { resolver 127.0.0.11 valid=10s; set $upstream http://erika:3000; - # Fail fast and retry on another replica instead of hanging - proxy_connect_timeout 3s; - proxy_read_timeout 10s; + # Timeouts for upstream connections + proxy_connect_timeout 10s; + proxy_read_timeout 30s; proxy_send_timeout 10s; proxy_next_upstream error timeout;