mirror of
https://github.com/nginx-proxy/nginx-proxy
synced 2025-08-22 21:54:31 +02:00
47 lines
907 B
YAML
47 lines
907 B
YAML
volumes:
|
|
nginx_conf:
|
|
|
|
|
|
services:
|
|
web:
|
|
image: web
|
|
expose:
|
|
- "80"
|
|
environment:
|
|
WEB_PORTS: 80
|
|
VIRTUAL_HOST: web.nginx-proxy.tld
|
|
|
|
web-server-tokens-off:
|
|
image: web
|
|
expose:
|
|
- "80"
|
|
environment:
|
|
WEB_PORTS: 80
|
|
VIRTUAL_HOST: web-server-tokens-off.nginx-proxy.tld
|
|
SERVER_TOKENS: "off"
|
|
|
|
sut:
|
|
profiles:
|
|
- singleContainer
|
|
image: nginxproxy/nginx-proxy:test
|
|
volumes:
|
|
- &dockerSocket /var/run/docker.sock:/tmp/docker.sock:ro
|
|
|
|
sut-dockergen:
|
|
profiles:
|
|
- separateContainers
|
|
image: nginxproxy/nginx-proxy:test-dockergen
|
|
volumes:
|
|
- &confVolume nginx_conf:/etc/nginx/conf.d
|
|
- *dockerSocket
|
|
|
|
sut-nginx:
|
|
profiles:
|
|
- separateContainers
|
|
container_name: nginx-proxy
|
|
image: nginx:alpine
|
|
volumes:
|
|
- *confVolume
|
|
labels:
|
|
- "com.github.nginx-proxy.nginx-proxy.nginx"
|