Hi, I’m trying to expose a web server in a container. I can see from logs that the server (express) is successfully listening on port 80, but when I try to access it via the Public URL from the dashboard, I keep getting the ‘Error accessing device’ page with reason ‘socket hang up’.
I have tried the following in the docker-compose.yml but all have the same result
services: server: build: ./server expose: - "80" network_mode: host
services: server: build: ./server ports: - "80:80" network_mode: host
services: server: build: ./server ports: - "80:80" expose: - "80" network_mode: host
plus the above without network_mode, and with only network_mode: host without expose or ports set.
What needs to be in docker-compose.yml to be able to successfully reach the server?