I am unsuccessfully trying to implement the following setup:
I want to make various containers accessible via a single server. The server (nginx container) should be accessible from my network via a VLAN interface. In general, the use of VLANs on the QNAP works great; I have already exposed two servers via Virtualization Station. I have already configured a virtual switch on the QNAP for the VLAN.
Unfortunately, I am unable to integrate this VLAN into my container structure.
Take a look at this and how to connect containers to specific network adapters via Compose
I
would like to implement the following scenario:
- An NGINX proxy is connected to the vSwitch for VLAN30, it gets its own IP address and the homepage is accessible
- NGINX is also connected to the docker network of paperless
here is the nginx yaml config:
services:
nginx:
image: nginx:latest
container_name: nginx_reverse_proxy
restart: unless-stopped
networks:
vlan11:
ipv4_address: 192.168.11.10
paperless_net:
ipv4_address: 172.29.16.20
volumes:
- ./conf.d:/etc/nginx/conf.d:ro
- ./ssl:/etc/nginx/ssl:ro
networks:
vlan11:
external: true
paperless_net:
external: true