My first basic loadBalancer

This commit is contained in:
2026-01-29 19:05:51 +02:00
commit 5e9b137d3f
7 changed files with 333 additions and 0 deletions

43
docker-compose.yml Normal file
View File

@@ -0,0 +1,43 @@
version: '3.9'
services:
app-1:
image: node-app:v1
ports:
- "3001:3000"
networks:
- app-network
environment:
- INSTANCE_NAME=app-1
app-2:
image: node-app:v1
ports:
- "3002:3000"
networks:
- app-network
environment:
- INSTANCE_NAME=app-2
app-3:
image: node-app:v1
ports:
- "3003:3000"
networks:
- app-network
environment:
- INSTANCE_NAME=app-3
nginx:
image: nginx:alpine
ports:
- "80:80"
volumes:
- ./files/nginx.conf:/etc/nginx/nginx.conf:ro
networks:
- app-network
networks:
app-network:
driver: bridge