1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- 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"
|