docker stack commands

This commit is contained in:
2019-05-05 15:50:48 +02:00
parent c96b199932
commit 155c0b2c3d
20 changed files with 164 additions and 37 deletions
+16 -3
View File
@@ -1,9 +1,22 @@
# frontend
server {
listen 80;
listen 80;
server_name _;
location / {
root /frontend_fue/dist;
index index.html index.htm;
root /srv/dist;
index index.html index.htm;
}
}
# backend
server {
listen 8084;
server_name _;
location / {
proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_pass http://backend_flask:8084;
}
}