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: volumes:
- &confVolume nginx_conf:/etc/nginx/conf.d - &confVolume nginx_conf:/etc/nginx/conf.d
- *dockerSocket - *dockerSocket
environment: environment: *nginxProxyEnv
<<: *nginxProxyEnv
sutnginx: sutnginx:
profiles: profiles:

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,3 +1,7 @@
volumes:
nginx_conf:
services: services:
web1: web1:
image: web image: web
@ -25,6 +29,26 @@ services:
network_mode: "none" network_mode: "none"
sut: sut:
profiles:
- singleContainer
image: nginxproxy/nginx-proxy:test image: nginxproxy/nginx-proxy:test
volumes: 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: services:
web: web:
image: web image: web
@ -8,6 +12,26 @@ services:
VIRTUAL_HOST: web.nginx-proxy.tld VIRTUAL_HOST: web.nginx-proxy.tld
sut: sut:
profiles:
- singleContainer
image: nginxproxy/nginx-proxy:test image: nginxproxy/nginx-proxy:test
volumes: 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: services:
web: web:
image: web image: web
@ -9,6 +13,26 @@ services:
network_mode: "none" network_mode: "none"
sut: sut:
profiles:
- singleContainer
image: nginxproxy/nginx-proxy:test image: nginxproxy/nginx-proxy:test
volumes: 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"