fix(backend) : add .env to docker and longer timeout time
This commit is contained in:
@@ -6,6 +6,8 @@ services:
|
|||||||
- "3000"
|
- "3000"
|
||||||
deploy:
|
deploy:
|
||||||
replicas: 3
|
replicas: 3
|
||||||
|
env_file:
|
||||||
|
.env
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
image: nginx:alpine
|
image: nginx:alpine
|
||||||
|
|||||||
+3
-3
@@ -38,9 +38,9 @@ http {
|
|||||||
resolver 127.0.0.11 valid=10s;
|
resolver 127.0.0.11 valid=10s;
|
||||||
set $upstream http://erika:3000;
|
set $upstream http://erika:3000;
|
||||||
|
|
||||||
# Fail fast and retry on another replica instead of hanging
|
# Timeouts for upstream connections
|
||||||
proxy_connect_timeout 3s;
|
proxy_connect_timeout 10s;
|
||||||
proxy_read_timeout 10s;
|
proxy_read_timeout 30s;
|
||||||
proxy_send_timeout 10s;
|
proxy_send_timeout 10s;
|
||||||
proxy_next_upstream error timeout;
|
proxy_next_upstream error timeout;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user