mirror of
https://github.com/nginx-proxy/nginx-proxy
synced 2025-08-20 12:36:40 +02:00
54 lines
1.1 KiB
YAML
54 lines
1.1 KiB
YAML
volumes:
|
|
nginx_conf:
|
|
|
|
|
|
services:
|
|
web1:
|
|
image: web
|
|
expose:
|
|
- "81"
|
|
environment:
|
|
WEB_PORTS: "81"
|
|
VIRTUAL_HOST: "*.nginx-proxy.tld"
|
|
|
|
sut:
|
|
profiles:
|
|
- singleContainer
|
|
image: nginxproxy/nginx-proxy:test
|
|
ports:
|
|
- "8080:8080"
|
|
- "8443:8443"
|
|
volumes:
|
|
- &dockerSocket /var/run/docker.sock:/tmp/docker.sock:ro
|
|
- &certs ./certs:/etc/nginx/certs:ro
|
|
- &acmeRoot ./acme_root:/usr/share/nginx/html:ro
|
|
environment: &nginxProxyEnv
|
|
HTTP_PORT: 8080
|
|
HTTPS_PORT: 8443
|
|
|
|
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
|
|
ports:
|
|
- "8080:8080"
|
|
- "8443:8443"
|
|
volumes:
|
|
- *confVolume
|
|
- *certs
|
|
- *acmeRoot
|
|
labels:
|
|
- "com.github.nginx-proxy.nginx-proxy.nginx"
|