nginx-proxy-auto-docker/test/test_htpasswd/test_htpasswd_virtual_host.yml
2024-12-19 01:35:50 +01:00

41 lines
836 B
YAML

volumes:
nginx_conf:
services:
web:
image: web
expose:
- "80"
environment:
WEB_PORTS: 80
VIRTUAL_HOST: htpasswd.nginx-proxy.tld
sut:
profiles:
- singleContainer
container_name: sut
image: nginxproxy/nginx-proxy:test
volumes:
- &dockerSocket /var/run/docker.sock:/tmp/docker.sock:ro
- &htpasswd ./htpasswd:/etc/nginx/htpasswd:ro
sut-dockergen:
profiles:
- separateContainers
image: nginxproxy/nginx-proxy:test-dockergen
volumes:
- &confVolume nginx_conf:/etc/nginx/conf.d
- *dockerSocket
- *htpasswd
sut-nginx:
profiles:
- separateContainers
container_name: nginx-proxy
image: nginx:alpine
volumes:
- *confVolume
- *htpasswd
labels:
- "com.github.nginx-proxy.nginx-proxy.nginx"