test: separate containers (contd)

This commit is contained in:
Nicolas Duchon 2024-12-22 20:27:24 +01:00
parent 7acf4780d5
commit 5ef2e31687
27 changed files with 101 additions and 55 deletions

View file

@ -35,8 +35,7 @@ services:
volumes:
- &confVolume nginx_conf:/etc/nginx/conf.d
- *dockerSocket
environment:
<<: *nginxProxyEnv
environment: *nginxProxyEnv
sutnginx:
profiles:

View file

@ -35,8 +35,7 @@ services:
profiles:
- separateContainers
image: nginxproxy/nginx-proxy:test-dockergen
environment:
<<: *nginxProxyEnv
environment: *nginxProxyEnv
volumes:
- &confVolume nginx_conf:/etc/nginx/conf.d
- *dockerSocket

View file

@ -19,8 +19,7 @@ services:
volumes:
- &confVolume nginx_conf:/etc/nginx/conf.d
- *dockerSocket
environment:
<<: *nginxProxyEnv
environment: *nginxProxyEnv
nginx-proxy-nginx:
profiles:

View file

@ -24,8 +24,7 @@ services:
profiles:
- separateContainers
image: nginxproxy/nginx-proxy:test-dockergen
environment:
<<: *nginxProxyEnv
environment: *nginxProxyEnv
volumes:
- &confVolume nginx_conf:/etc/nginx/conf.d
- *dockerSocket

View file

@ -17,8 +17,7 @@ services:
profiles:
- separateContainers
image: nginxproxy/nginx-proxy:test-dockergen
environment:
<<: *nginxProxyEnv
environment: *nginxProxyEnv
volumes:
- &confVolume nginx_conf:/etc/nginx/conf.d
- *dockerSocket

View file

@ -21,8 +21,7 @@ services:
- &confVolume nginx_conf:/etc/nginx/conf.d
- *dockerSocket
- *certs
environment:
<<: *nginxProxyEnv
environment: *nginxProxyEnv
sut-nginx:
profiles:

View file

@ -21,8 +21,7 @@ services:
- &confVolume nginx_conf:/etc/nginx/conf.d
- *dockerSocket
- *certs
environment:
<<: *nginxProxyEnv
environment: *nginxProxyEnv
sut-nginx:
profiles:

View file

@ -21,8 +21,7 @@ services:
- &confVolume nginx_conf:/etc/nginx/conf.d
- *dockerSocket
- *certs
environment:
<<: *nginxProxyEnv
environment: *nginxProxyEnv
sut-nginx:
profiles:

View file

@ -19,8 +19,7 @@ services:
volumes:
- &confVolume nginx_conf:/etc/nginx/conf.d
- *dockerSocket
environment:
<<: *nginxProxyEnv
environment: *nginxProxyEnv
sut-nginx:
profiles:

View file

@ -19,8 +19,7 @@ services:
volumes:
- &confVolume nginx_conf:/etc/nginx/conf.d
- *dockerSocket
environment:
<<: *nginxProxyEnv
environment: *nginxProxyEnv
sut-nginx:
profiles:

View file

@ -21,8 +21,7 @@ services:
- &confVolume nginx_conf:/etc/nginx/conf.d
- *dockerSocket
- *certs
environment:
<<: *nginxProxyEnv
environment: *nginxProxyEnv
sut-nginx:
profiles:

View file

@ -36,8 +36,7 @@ services:
volumes:
- &confVolume nginx_conf:/etc/nginx/conf.d
- *dockerSocket
environment:
<<: *nginxProxyEnv
environment: *nginxProxyEnv
sut-nginx:
profiles:

View file

@ -27,8 +27,7 @@ services:
volumes:
- &confVolume nginx_conf:/etc/nginx/conf.d
- *dockerSocket
environment:
<<: *nginxProxyEnv
environment: *nginxProxyEnv
sut-nginx:
profiles:

View file

@ -27,8 +27,7 @@ services:
volumes:
- &confVolume nginx_conf:/etc/nginx/conf.d
- *dockerSocket
environment:
<<: *nginxProxyEnv
environment: *nginxProxyEnv
sut-nginx:
profiles:

View file

@ -27,8 +27,7 @@ services:
volumes:
- &confVolume nginx_conf:/etc/nginx/conf.d
- *dockerSocket
environment:
<<: *nginxProxyEnv
environment: *nginxProxyEnv
sut-nginx:
profiles:

View file

@ -48,8 +48,7 @@ services:
volumes:
- &confVolume nginx_conf:/etc/nginx/conf.d
- *dockerSocket
environment:
<<: *nginxProxyEnv
environment: *nginxProxyEnv
networks:
- net1

View file

@ -55,8 +55,7 @@ services:
volumes:
- &confVolume nginx_conf:/etc/nginx/conf.d
- *dockerSocket
networks:
<<: *nginxProxyNetworks
networks: *nginxProxyNetworks
sut-nginx:
profiles:

View file

@ -57,10 +57,8 @@ services:
volumes:
- &confVolume nginx_conf:/etc/nginx/conf.d
- *dockerSocket
environment:
<<: *nginxProxyEnv
networks:
<<: *nginxProxyNetworks
environment: *nginxProxyEnv
networks: *nginxProxyNetworks
sut-nginx:
profiles:

View file

@ -50,8 +50,7 @@ services:
volumes:
- &confVolume nginx_conf:/etc/nginx/conf.d
- *dockerSocket
environment:
<<: *nginxProxyEnv
environment: *nginxProxyEnv
sut-nginx:
profiles:

View file

@ -28,8 +28,7 @@ services:
volumes:
- &confVolume nginx_conf:/etc/nginx/conf.d
- *dockerSocket
environment:
<<: *nginxProxyEnv
environment: *nginxProxyEnv
sut-nginx:
profiles:

View file

@ -28,8 +28,7 @@ services:
volumes:
- &confVolume nginx_conf:/etc/nginx/conf.d
- *dockerSocket
environment:
<<: *nginxProxyEnv
environment: *nginxProxyEnv
sut-nginx:
profiles:

View file

@ -28,8 +28,7 @@ services:
volumes:
- &confVolume nginx_conf:/etc/nginx/conf.d
- *dockerSocket
environment:
<<: *nginxProxyEnv
environment: *nginxProxyEnv
sut-nginx:
profiles:

View file

@ -28,8 +28,7 @@ services:
volumes:
- &confVolume nginx_conf:/etc/nginx/conf.d
- *dockerSocket
environment:
<<: *nginxProxyEnv
environment: *nginxProxyEnv
sut-nginx:
profiles:

View file

@ -29,8 +29,7 @@ services:
volumes:
- &confVolume nginx_conf:/etc/nginx/conf.d
- *dockerSocket
networks:
<<: *nginxProxyNetworks
networks: *nginxProxyNetworks
nginx-proxy-nginx:
profiles:
@ -41,8 +40,7 @@ services:
- *confVolume
labels:
- "com.github.nginx-proxy.nginx-proxy.nginx"
networks:
<<: *nginxProxyNetworks
networks: *nginxProxyNetworks
web1:
image: web

View file

@ -1,3 +1,7 @@
volumes:
nginx_conf:
services:
web1:
image: web
@ -25,6 +29,26 @@ services:
network_mode: "none"
sut:
profiles:
- singleContainer
image: nginxproxy/nginx-proxy:test
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- &dockerSocket /var/run/docker.sock:/tmp/docker.sock:ro
sut-dockergen:
profiles:
- separateContainers
image: nginxproxy/nginx-proxy:test-dockergen
volumes:
- &confVolume nginx_conf:/etc/nginx/conf.d
- *dockerSocket
sut-nginx:
profiles:
- separateContainers
container_name: nginx-proxy
image: nginx:alpine
volumes:
- *confVolume
labels:
- "com.github.nginx-proxy.nginx-proxy.nginx"

View file

@ -1,3 +1,7 @@
volumes:
nginx_conf:
services:
web:
image: web
@ -8,6 +12,26 @@ services:
VIRTUAL_HOST: web.nginx-proxy.tld
sut:
profiles:
- singleContainer
image: nginxproxy/nginx-proxy:test
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- &dockerSocket /var/run/docker.sock:/tmp/docker.sock:ro
sut-dockergen:
profiles:
- separateContainers
image: nginxproxy/nginx-proxy:test-dockergen
volumes:
- &confVolume nginx_conf:/etc/nginx/conf.d
- *dockerSocket
sut-nginx:
profiles:
- separateContainers
container_name: nginx-proxy
image: nginx:alpine
volumes:
- *confVolume
labels:
- "com.github.nginx-proxy.nginx-proxy.nginx"

View file

@ -1,3 +1,7 @@
volumes:
nginx_conf:
services:
web:
image: web
@ -9,6 +13,26 @@ services:
network_mode: "none"
sut:
profiles:
- singleContainer
image: nginxproxy/nginx-proxy:test
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- &dockerSocket /var/run/docker.sock:/tmp/docker.sock:ro
sut-dockergen:
profiles:
- separateContainers
image: nginxproxy/nginx-proxy:test-dockergen
volumes:
- &confVolume nginx_conf:/etc/nginx/conf.d
- *dockerSocket
sut-nginx:
profiles:
- separateContainers
container_name: nginx-proxy
image: nginx:alpine
volumes:
- *confVolume
labels:
- "com.github.nginx-proxy.nginx-proxy.nginx"