1
0
mirror of https://github.com/nginx-proxy/nginx-proxy synced 2025-08-20 03:17:50 +02:00
nginx-proxy/test/test_internal/test_internal-per-vhost.yml
2024-12-19 01:35:50 +01:00

50 lines
1022 B
YAML

volumes:
nginx_conf:
services:
web1:
image: web
expose:
- "81"
environment:
WEB_PORTS: 81
VIRTUAL_HOST: web1.nginx-proxy.example
NETWORK_ACCESS: internal
web2:
image: web
expose:
- "82"
environment:
WEB_PORTS: 82
VIRTUAL_HOST: web2.nginx-proxy.example
sut:
profiles:
- singleContainer
image: nginxproxy/nginx-proxy:test
volumes:
- &dockerSocket /var/run/docker.sock:/tmp/docker.sock:ro
- &networkInternal ./network_internal.conf:/etc/nginx/network_internal.conf:ro
sut-dockergen:
profiles:
- separateContainers
image: nginxproxy/nginx-proxy:test-dockergen
volumes:
- &confVolume nginx_conf:/etc/nginx/conf.d
- *dockerSocket
- *networkInternal
sut-nginx:
profiles:
- separateContainers
container_name: nginx-proxy
image: nginx:alpine
volumes:
- *confVolume
- *networkInternal
labels:
- "com.github.nginx-proxy.nginx-proxy.nginx"