Commit db1939c9 authored by David Foucher's avatar David Foucher

Add and twik nginx.conf

parent 4a6a7db0
Pipeline #2300 failed with stage
in 1 minute and 3 seconds
resolver valid=15s;
server {
listen 80 default_server;
......@@ -6,8 +7,10 @@ server {
client_max_body_size 25M;
set $upstream_endpoint trefle;
location @gunicorn-master {
proxy_pass http://trefle:8000;
#proxy_pass http://trefle:8000;
proxy_pass http://$upstream_endpoint:8000;
proxy_redirect off;
proxy_set_header Host $host;
echo "[INIT] Scaling trefle up"
docker-compose up -d --scale trefle=2 --no-recreate trefle
echo "[INIT] Remove older continer trefle"
docker stop $(docker ps -n 2 --filter "name=trefle_" -q | tail -1) && docker container prune -f
echo "[INIT] Scaling trefle down"
docker-compose up -d --scale trefle=1 --no-recreate trefle
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment