Added proxy

This commit is contained in:
2026-02-12 12:26:52 +01:00
parent 1f2c264e16
commit b91f952f80
2 changed files with 30 additions and 0 deletions

16
compose/proxy/nginx.conf Normal file
View File

@@ -0,0 +1,16 @@
events {}
http{
upstream backend{
server web:80;
server web_2:80;
server web_3:80;
}
server{
listen 80;
location / {
proxy_pass http://backend;
}
}
}

14
compose/proxy/proxy.yml Normal file
View File

@@ -0,0 +1,14 @@
services:
web:
image: nginx:alpine
volumes:
- ./web:/usr/share/nginx/html:ro
proxy:
image: nginx:alpine
ports:
- 80:80
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- web