fix(backend) : add .env to docker and longer timeout time
This commit is contained in:
@@ -6,6 +6,8 @@ services:
|
||||
- "3000"
|
||||
deploy:
|
||||
replicas: 3
|
||||
env_file:
|
||||
.env
|
||||
|
||||
nginx:
|
||||
image: nginx:alpine
|
||||
|
||||
+3
-3
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user