Добавить docker-compose.yaml
This commit is contained in:
35
docker-compose.yaml
Normal file
35
docker-compose.yaml
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
services:
|
||||||
|
nginx:
|
||||||
|
image: nginx:alpine
|
||||||
|
ports:
|
||||||
|
- "8080:80"
|
||||||
|
volumes:
|
||||||
|
- ./nginx.conf:/etc/nginx/nginx.conf
|
||||||
|
depends_on:
|
||||||
|
- web1
|
||||||
|
- web2
|
||||||
|
- web3
|
||||||
|
networks:
|
||||||
|
- app-network
|
||||||
|
|
||||||
|
web1:
|
||||||
|
image: lscr.io/linuxserver/whoami:latest
|
||||||
|
hostname: web1
|
||||||
|
networks:
|
||||||
|
- app-network
|
||||||
|
|
||||||
|
web2:
|
||||||
|
image: lscr.io/linuxserver/whoami:latest
|
||||||
|
hostname: web2
|
||||||
|
networks:
|
||||||
|
- app-network
|
||||||
|
|
||||||
|
web3:
|
||||||
|
image: lscr.io/linuxserver/whoami:latest
|
||||||
|
hostname: web3
|
||||||
|
networks:
|
||||||
|
- app-network
|
||||||
|
|
||||||
|
networks:
|
||||||
|
app-network:
|
||||||
|
driver: bridge
|
||||||
Reference in New Issue
Block a user