mirror of
https://github.com/nginx-proxy/nginx-proxy
synced 2025-08-20 20:44:37 +02:00
63 lines
1.3 KiB
YAML
63 lines
1.3 KiB
YAML
volumes:
|
|
nginx_conf:
|
|
|
|
|
|
services:
|
|
base:
|
|
image: web
|
|
environment:
|
|
WEB_PORTS: "80"
|
|
VIRTUAL_HOST: "nginx-proxy.tld"
|
|
|
|
www:
|
|
image: web
|
|
environment:
|
|
WEB_PORTS: "80"
|
|
VIRTUAL_HOST: "www.nginx-proxy.tld"
|
|
|
|
sub-www:
|
|
image: web
|
|
environment:
|
|
WEB_PORTS: "80"
|
|
VIRTUAL_HOST: "subdomain.www.nginx-proxy.tld"
|
|
|
|
web1:
|
|
image: web
|
|
environment:
|
|
WEB_PORTS: "80"
|
|
VIRTUAL_HOST: "web1.nginx-proxy.tld"
|
|
|
|
sut:
|
|
profiles:
|
|
- singleContainer
|
|
image: nginxproxy/nginx-proxy:test
|
|
volumes:
|
|
- &dockerSocket /var/run/docker.sock:/tmp/docker.sock:ro
|
|
- &certs ./cert_selection:/etc/nginx/certs:ro
|
|
- &acmeRoot ./acme_root:/usr/share/nginx/html:ro
|
|
environment: &nginxProxyEnv
|
|
DEBUG_ENDPOINT: "true"
|
|
|
|
sut-dockergen:
|
|
profiles:
|
|
- separateContainers
|
|
image: nginxproxy/nginx-proxy:test-dockergen
|
|
volumes:
|
|
- &confVolume nginx_conf:/etc/nginx/conf.d
|
|
- *dockerSocket
|
|
- *certs
|
|
- *acmeRoot
|
|
environment: *nginxProxyEnv
|
|
|
|
sut-nginx:
|
|
profiles:
|
|
- separateContainers
|
|
container_name: nginx-proxy
|
|
image: nginx:alpine
|
|
volumes:
|
|
- *confVolume
|
|
- *certs
|
|
- *acmeRoot
|
|
labels:
|
|
- "com.github.nginx-proxy.nginx-proxy.nginx"
|