Enable incomming connection for docker-compose
Posted: 18 Apr 2023, 08:27
Hi, i want start my app with docker compose (i use portainer).
When container started, i try connect from browser but receive strange error: Browser try load page some time, and then raise timeout error.
I simplified issue to current docker-compose (simple echo server):
version: "3"
services:
echo-server:
image: ealen/echo-server
ports:
- 6000:80
On portainer, container started successful, port mapping (6000 host -> 80 container) working
When i connect to ssh to NAS, i see port 6000 as opened (with netstat command)
Try make request with curl (ter_curl of course), and get same timeout error. ter_wget not working too
I try add rule on firewall for allow route, but nothing happened.
Control panel > firewall > add new > specify name, check TCP and UDP, action: allow > incoming IP: all > Port: all (or try 6000 too)
After submit, i lost access to NAS by web ( i can delete wrong rule in SSH session)
What am I doing wrong?)
When container started, i try connect from browser but receive strange error: Browser try load page some time, and then raise timeout error.
I simplified issue to current docker-compose (simple echo server):
version: "3"
services:
echo-server:
image: ealen/echo-server
ports:
- 6000:80
On portainer, container started successful, port mapping (6000 host -> 80 container) working
When i connect to ssh to NAS, i see port 6000 as opened (with netstat command)
Try make request with curl (ter_curl of course), and get same timeout error. ter_wget not working too
I try add rule on firewall for allow route, but nothing happened.
Control panel > firewall > add new > specify name, check TCP and UDP, action: allow > incoming IP: all > Port: all (or try 6000 too)
After submit, i lost access to NAS by web ( i can delete wrong rule in SSH session)
What am I doing wrong?)