2017-02-21 01:55:52 +01:00
|
|
|
networks:
|
|
|
|
netA:
|
|
|
|
netB:
|
|
|
|
|
|
|
|
services:
|
|
|
|
reverseproxy:
|
|
|
|
container_name: reverseproxy
|
|
|
|
networks:
|
|
|
|
- netA
|
2021-04-01 16:06:09 +02:00
|
|
|
image: nginxproxy/nginx-proxy:test
|
2017-02-21 01:55:52 +01:00
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
|
|
|
|
|
|
|
webA:
|
|
|
|
networks:
|
|
|
|
- netA
|
|
|
|
image: web
|
|
|
|
expose:
|
|
|
|
- 81
|
|
|
|
environment:
|
2024-12-27 16:16:55 +01:00
|
|
|
WEB_PORTS: "81"
|
2017-02-21 01:55:52 +01:00
|
|
|
VIRTUAL_HOST: webA.nginx-proxy
|
|
|
|
|
|
|
|
webB:
|
|
|
|
networks:
|
|
|
|
- netB
|
|
|
|
image: web
|
|
|
|
expose:
|
|
|
|
- 82
|
|
|
|
environment:
|
2024-12-27 16:16:55 +01:00
|
|
|
WEB_PORTS: "82"
|
2017-02-21 01:55:52 +01:00
|
|
|
VIRTUAL_HOST: webB.nginx-proxy
|