upstream docker-web { server 178.18.0.5:9001; } server { include /etc/nginx/extra-conf.d/*.conf; listen 80; include /etc/nginx/mime.types; location / { root /usr/share/nginx/html; try_files $uri $uri/ /index.html; } location /api/ { proxy_pass http://docker-web; } }