Hi,
I have a strange problem. The applications I am hosting and using with traefik seems to work flawless if I use the external url i.e. home-assistant.mysite.org, but from within my network I cant access it with the static ip I've been using: 192.168.1.44:8123
I'm hosting this on ubuntu, I have opened the ports 80 and 443 in ufw and the hardware router. I did have this things working with the same docker-compose before a disc crash, but I seem to be missing something.
This will depend on your rules.
You will likely either need to setup dns in you network to resolve the external uri to the lan address or update your rule to include the ip or internal hostname. This can be the easier option if you have a router than can do dns for your lan.
If it is TLS enabled you might need to create a separate http router for lan use.
would that be another entrypoint?
or set up a route to the same route?
I have this in my docker-compose:
networks:
proxynet:
driver: bridge
name: proxynet
ipam:
driver: default
config:
- subnet: 172.19.0.0/16
some container like this:
dozzle:
container_name: dozzle
image: amir20/dozzle:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
proxynet:
ipv4_address: 172.19.0.32
ports:
- 9999:8080
restart: always
#
netstat says
netstat -tnl |grep 9999
tcp 0 0 0.0.0.0:9999 0.0.0.0:* LISTEN
tcp6 0 0 :::9999 :::* LISTEN
I try add
docker run -d -p 192.168.1.44:8111:80 nginx
gets this
netstat -tnl |grep 8111
tcp 0 0 192.168.1.44:8111 0.0.0.0:* LISTEN
Still not able to access from other computer in the network. I can curl from server and see they are running ok when using localhost??