simple test for docker network using reverse proxy

This commit is contained in:
Maximilian Güntner
2020-06-19 19:20:07 +02:00
parent 5ba744be76
commit 0699a82ccb
4 changed files with 51 additions and 8 deletions

23
nginx.conf Normal file
View File

@@ -0,0 +1,23 @@
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
index index.html index.htm;
server_name _;
location /alpha {
proxy_pass http://nginx_alpha/index.html;
}
location /bravo {
proxy_pass http://nginx_bravo/index.html;
}
location / {
try_files $uri $uri/ =404;
}
}