我有四处 services子。 vpn_img1 and vpn_img2 are after a vpn (configued as below),shop_img1 and Host_img2 are not.
我能够通过<代码>http:// localhost:<port_num>,在东道机器上获得所有4个成像服务,但只能从当地网络的其他机器上获得东道方的图像;蒸汽_img图像。 我也取得了同样的结果,看到了其他类似的假象。 谁知道为什么? 是否在登机服务上设置了任何条件,使人们能够接触 v球图像? 我是否还需要做些什么才能获得这种机会?
此外,东道方_img1需要与 v-imgs交谈,但东道方_img2没有。
version: "3.4"
services:
vpn:
container_name: vpn
image: ghcr.io/bubuntux/nordlynx
restart: unless-stopped
cap_add:
- NET_ADMIN
environment:
- PRIVATE_KEY=xxx
- QUERY=filters[country_id]=228
- NET_LOCAL=192.168.1.0/24
# - ALLOWED_IPS=192.168.0.0/24
ports:
- 1234:1234 # vpn_img1
- 2345:2345 # vpn_img2
sysctls:
- net.ipv6.conf.all.disable_ipv6=1
vpn_img1:
container_name: vpn_img1
image: vpn_img1
restart: unless-stopped
network_mode: service:vpn # run on the vpn network
depends_on:
- vpn
vpn_img2:
container_name: vpn_img2
image: vpn_img2
restart: unless-stopped
network_mode: service:vpn # run on the vpn network
depends_on:
- vpn
host_img1:
container_name: host_img1
image: host_img1
restart: unless-stopped
network_mode: host
host_img2:
container_name: host_img2
image: host_img2
restart: unless-stopped
network_mode: host