| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- volumes:
- nginx_conf:
- services:
- foo:
- image: web
- expose:
- - "42"
- environment:
- WEB_PORTS: "42"
- VIRTUAL_HOST: "foo.nginx-proxy.test"
- web1:
- image: web
- expose:
- - "81"
- environment:
- WEB_PORTS: "81"
- VIRTUAL_HOST: "nginx-proxy.test"
- VIRTUAL_PATH: "/web1/"
- VIRTUAL_DEST: "/"
- web2:
- image: web
- expose:
- - "82"
- environment:
- WEB_PORTS: "82"
- VIRTUAL_HOST: "nginx-proxy.test"
- VIRTUAL_PATH: "/web2/"
- VIRTUAL_DEST: "/"
- web3:
- image: web
- expose:
- - "83"
- environment:
- WEB_PORTS: "83"
- VIRTUAL_HOST: "nginx-proxy.test"
- VIRTUAL_PATH: "~ ^/(web3|alt)/"
- sut:
- profiles:
- - singleContainer
- image: nginxproxy/nginx-proxy:test
- volumes:
- - &dockerSocket /var/run/docker.sock:/tmp/docker.sock:ro
- - &fooConf ./foo.conf:/etc/nginx/vhost.d/foo.nginx-proxy.test:ro
- - &barConf ./bar.conf:/etc/nginx/vhost.d/nginx-proxy.test_918d687a929083edd0c7224ee2293e0e7c062ab4_location:ro
- - &alternateConf ./alternate.conf:/etc/nginx/vhost.d/nginx-proxy.test_7fb22b74bbdf907425dbbad18e4462565cada230_location:ro
- environment: &nginxProxyEnv
- DEFAULT_ROOT: 418
- sut-dockergen:
- profiles:
- - separateContainers
- image: nginxproxy/nginx-proxy:test-dockergen
- volumes:
- - &confVolume nginx_conf:/etc/nginx/conf.d
- - *dockerSocket
- - *fooConf
- - *barConf
- - *alternateConf
- environment: *nginxProxyEnv
- sut-nginx:
- profiles:
- - separateContainers
- container_name: nginx-proxy
- image: nginx:alpine
- volumes:
- - *confVolume
- - *fooConf
- - *barConf
- - *alternateConf
- labels:
- - "com.github.nginx-proxy.nginx-proxy.nginx"
|