|
@@ -8,9 +8,19 @@ services:
|
|
|
- singleContainer
|
|
|
image: nginxproxy/nginx-proxy:test
|
|
|
volumes:
|
|
|
- - /var/run/docker.sock:/tmp/docker.sock:ro
|
|
|
- - ./my_custom_proxy_settings_f00.conf:/etc/nginx/vhost.d/web1.nginx-proxy.example_location:ro
|
|
|
- - ./my_custom_proxy_settings_bar.conf:/etc/nginx/vhost.d/561032515ede3ab3a015edfb244608b72409c430_location:ro
|
|
|
+ - &dockerSocket /var/run/docker.sock:/tmp/docker.sock:ro
|
|
|
+ - &vhostLocationConf ./my_custom_proxy_settings_f00.conf:/etc/nginx/vhost.d/web1.nginx-proxy.example_location:ro
|
|
|
+ - ®exLocationConf ./my_custom_proxy_settings_bar.conf:/etc/nginx/vhost.d/561032515ede3ab3a015edfb244608b72409c430_location:ro
|
|
|
+
|
|
|
+ nginx-proxy-dockergen:
|
|
|
+ profiles:
|
|
|
+ - separateContainers
|
|
|
+ image: nginxproxy/nginx-proxy:test-dockergen
|
|
|
+ volumes:
|
|
|
+ - &confVolume nginx_conf:/etc/nginx/conf.d
|
|
|
+ - *dockerSocket
|
|
|
+ - *vhostLocationConf
|
|
|
+ - *regexLocationConf
|
|
|
|
|
|
nginx-proxy-nginx:
|
|
|
profiles:
|
|
@@ -18,22 +28,12 @@ services:
|
|
|
container_name: nginx-proxy
|
|
|
image: nginx:alpine
|
|
|
volumes:
|
|
|
- - nginx_conf:/etc/nginx/conf.d:ro
|
|
|
- - ./my_custom_proxy_settings_f00.conf:/etc/nginx/vhost.d/web1.nginx-proxy.example_location:ro
|
|
|
- - ./my_custom_proxy_settings_bar.conf:/etc/nginx/vhost.d/561032515ede3ab3a015edfb244608b72409c430_location:ro
|
|
|
+ - *confVolume
|
|
|
+ - *vhostLocationConf
|
|
|
+ - *regexLocationConf
|
|
|
labels:
|
|
|
- "com.github.nginx-proxy.nginx-proxy.nginx"
|
|
|
|
|
|
- nginx-proxy-dockergen:
|
|
|
- profiles:
|
|
|
- - separateContainers
|
|
|
- image: nginxproxy/nginx-proxy:test-dockergen
|
|
|
- volumes:
|
|
|
- - /var/run/docker.sock:/tmp/docker.sock:ro
|
|
|
- - nginx_conf:/etc/nginx/conf.d
|
|
|
- - ./my_custom_proxy_settings_f00.conf:/etc/nginx/vhost.d/web1.nginx-proxy.example_location:ro
|
|
|
- - ./my_custom_proxy_settings_bar.conf:/etc/nginx/vhost.d/561032515ede3ab3a015edfb244608b72409c430_location:ro
|
|
|
-
|
|
|
web1:
|
|
|
image: web
|
|
|
expose:
|