Using docker compose it is possible to create a stack that contains more then one network, however the Docker Containers screen will only show one at a time
To reproduce:
- Run Unraid 6.11.5
- Install Docker Compose.Manager from apps
- Create a new stack with the setting below (note: you will need to update the ip4_address to match your network)
- Save and Run
version: "3" services: nginx: container_name: Nginx-Proxy-Manager-Official image: jc21/nginx-proxy-manager:latest #ports: # These ports are in format <host-port>:<container-port> # - 192.168.1.123:80:80 # Public HTTP Port # - 192.168.1.123:443:443 # Public HTTPS Port # - 192.168.1.123:81:81 # Admin Web Port volumes: - /mnt/user/appdata/Nginx-Proxy-Manager-Official/data:/data - /mnt/user/appdata/Nginx-Proxy-Manager-Official/letsencrypt:/etc/letsencrypt networks: frontend: ipv4_address: 192.168.1.123 backend: # Connect the Nginx container to the backend network aliases: - nginx apache: image: httpd:latest networks: backend: # Connect the Apache container to the backend network aliases: - apache networks: frontend: name: br0 external: true backend: driver: bridge ipam: driver: default config: - subnet: 172.16.0.0/24 # Define the subnet for the backend network
docker network inspect br0
"Containers": {
"e07c32a74d72814a5a1c7f63137ef8155fa314c28f88b6bafd40edf0b7199984": {
"Name": "Nginx-Proxy-Manager-Official",
"EndpointID": "5b949a951b980c8a8a9ea6f8d27cea83db7ac7640e26f614b8892c482ec83b1d",
"MacAddress": "02:42:c0:a8:01:7b",
"IPv4Address": "192.168.1.123/24",
"IPv6Address": ""
}
},
docker network inspect pubpriv_backend
"Containers": { "7d982b051a0d8f826160eae74bc70301d9721bcd82f7b7b6c4fdfe1ba30b3b71": { "Name": "pubpriv-apache-1", "EndpointID": "fe4577ab66a27b38574ef8f6f62ff1888c953116245367894fa483cb4e0399d5", "MacAddress": "02:42:ac:10:00:02", "IPv4Address": "172.16.0.2/24", "IPv6Address": "" }, "e07c32a74d72814a5a1c7f63137ef8155fa314c28f88b6bafd40edf0b7199984": { "Name": "Nginx-Proxy-Manager-Official", "EndpointID": "e0be0d84da6ef63f474ed6cec3286923255f3aa3884017b9e32ebc67eaaa5174", "MacAddress": "02:42:ac:10:00:03", "IPv4Address": "172.16.0.3/24", "IPv6Address": "" } },
Expected Results: Should show that the container is part of the br0 network and pubpriv_backend
+Enhancement Request: For the advanced, show the current ip address for the private network of the container (even if the user can not reach it)
Recommended Comments
There are no comments to display.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.