test: separate containers
This commit is contained in:
parent
e736f84b87
commit
e0bbd59313
10 changed files with 173 additions and 6 deletions
|
@ -2,9 +2,11 @@ networks:
|
|||
netA:
|
||||
netB:
|
||||
|
||||
|
||||
volumes:
|
||||
nginx_conf:
|
||||
|
||||
|
||||
services:
|
||||
reverseproxy:
|
||||
profiles:
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
volumes:
|
||||
nginx_conf:
|
||||
|
||||
|
||||
services:
|
||||
web1:
|
||||
image: web
|
||||
|
@ -16,8 +20,30 @@ services:
|
|||
VIRTUAL_HOST: web2.nginx-proxy.tld
|
||||
|
||||
sut:
|
||||
profiles:
|
||||
- singleContainer
|
||||
image: nginxproxy/nginx-proxy:test
|
||||
volumes:
|
||||
- /var/run/docker.sock:/f00.sock:ro
|
||||
environment:
|
||||
DOCKER_HOST: unix:///f00.sock
|
||||
|
||||
sutnginx:
|
||||
profiles:
|
||||
- separateContainers
|
||||
container_name: nginx-proxy
|
||||
image: nginx:alpine
|
||||
volumes:
|
||||
- nginx_conf:/etc/nginx/conf.d:ro
|
||||
labels:
|
||||
- "com.github.nginx-proxy.nginx-proxy.nginx"
|
||||
|
||||
sutdockergen:
|
||||
profiles:
|
||||
- separateContainers
|
||||
image: nginxproxy/nginx-proxy:test-dockergen
|
||||
volumes:
|
||||
- /var/run/docker.sock:/f00.sock:ro
|
||||
- nginx_conf:/etc/nginx/conf.d
|
||||
environment:
|
||||
DOCKER_HOST: unix:///f00.sock
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
volumes:
|
||||
nginx_conf:
|
||||
|
||||
|
||||
services:
|
||||
web1:
|
||||
image: web
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
volumes:
|
||||
nginx_conf:
|
||||
|
||||
|
||||
services:
|
||||
web1:
|
||||
image: web
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
volumes:
|
||||
nginx_conf:
|
||||
|
||||
|
||||
services:
|
||||
web1:
|
||||
image: web
|
||||
|
|
|
@ -1,11 +1,39 @@
|
|||
volumes:
|
||||
nginx_conf:
|
||||
|
||||
|
||||
services:
|
||||
nginx-proxy:
|
||||
profiles:
|
||||
- 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/default_location:ro
|
||||
- ./my_custom_proxy_settings_bar.conf:/etc/nginx/vhost.d/web3.nginx-proxy.example_location:ro
|
||||
|
||||
nginx-proxy-nginx:
|
||||
profiles:
|
||||
- separateContainers
|
||||
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/default_location:ro
|
||||
- ./my_custom_proxy_settings_bar.conf:/etc/nginx/vhost.d/web3.nginx-proxy.example_location:ro
|
||||
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/default_location:ro
|
||||
- ./my_custom_proxy_settings_bar.conf:/etc/nginx/vhost.d/web3.nginx-proxy.example_location:ro
|
||||
|
||||
web1:
|
||||
image: web
|
||||
expose:
|
||||
|
|
|
@ -1,10 +1,36 @@
|
|||
volumes:
|
||||
nginx_conf:
|
||||
|
||||
|
||||
services:
|
||||
nginx-proxy:
|
||||
profiles:
|
||||
- singleContainer
|
||||
image: nginxproxy/nginx-proxy:test
|
||||
volumes:
|
||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||
- ./my_custom_proxy_settings_f00.conf:/etc/nginx/proxy.conf:ro
|
||||
|
||||
nginx-proxy-nginx:
|
||||
profiles:
|
||||
- separateContainers
|
||||
container_name: nginx-proxy
|
||||
image: nginx:alpine
|
||||
volumes:
|
||||
- nginx_conf:/etc/nginx/conf.d:ro
|
||||
- ./my_custom_proxy_settings_f00.conf:/etc/nginx/proxy.conf:ro
|
||||
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/proxy.conf:ro
|
||||
|
||||
web1:
|
||||
image: web
|
||||
expose:
|
||||
|
|
|
@ -1,11 +1,39 @@
|
|||
volumes:
|
||||
nginx_conf:
|
||||
|
||||
|
||||
services:
|
||||
nginx-proxy:
|
||||
profiles:
|
||||
- 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
|
||||
|
||||
nginx-proxy-nginx:
|
||||
profiles:
|
||||
- separateContainers
|
||||
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
|
||||
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:
|
||||
|
|
|
@ -1,11 +1,39 @@
|
|||
volumes:
|
||||
nginx_conf:
|
||||
|
||||
|
||||
services:
|
||||
nginx-proxy:
|
||||
profiles:
|
||||
- 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:ro
|
||||
- ./my_custom_proxy_settings_bar.conf:/etc/nginx/vhost.d/561032515ede3ab3a015edfb244608b72409c430:ro
|
||||
|
||||
nginx-proxy-nginx:
|
||||
profiles:
|
||||
- separateContainers
|
||||
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:ro
|
||||
- ./my_custom_proxy_settings_bar.conf:/etc/nginx/vhost.d/561032515ede3ab3a015edfb244608b72409c430:ro
|
||||
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:ro
|
||||
- ./my_custom_proxy_settings_bar.conf:/etc/nginx/vhost.d/561032515ede3ab3a015edfb244608b72409c430:ro
|
||||
|
||||
web1:
|
||||
image: web
|
||||
expose:
|
||||
|
|
|
@ -1,10 +1,36 @@
|
|||
volumes:
|
||||
nginx_conf:
|
||||
|
||||
|
||||
services:
|
||||
nginx-proxy:
|
||||
profiles:
|
||||
- singleContainer
|
||||
image: nginxproxy/nginx-proxy:test
|
||||
volumes:
|
||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||
- ./my_custom_proxy_settings_f00.conf:/etc/nginx/conf.d/my_custom_proxy_settings_f00.conf:ro
|
||||
|
||||
nginx-proxy-nginx:
|
||||
profiles:
|
||||
- separateContainers
|
||||
container_name: nginx-proxy
|
||||
image: nginx:alpine
|
||||
volumes:
|
||||
- nginx_conf:/etc/nginx/conf.d:ro
|
||||
- ./my_custom_proxy_settings_f00.conf:/etc/nginx/conf.d/my_custom_proxy_settings_f00.conf:ro
|
||||
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/conf.d/my_custom_proxy_settings_f00.conf:ro
|
||||
|
||||
web1:
|
||||
image: web
|
||||
expose:
|
||||
|
|
Loading…
Reference in a new issue