-
Notifications
You must be signed in to change notification settings - Fork 66
Description
Good afternoon dear dev,
I have not found a thread with a similar problem so far, so I'll just get straight to the point:
No matter what I do, Firewall off on my NAS, Traffic Rule for Allow all ports to and from the NAS to the OpenWRT Router, I get:
At first, I thought it was me, and I had setup an NGINX Alpine reverse proxy for issues like this before due to some issues with resolution for a Docker container called "Dashy". That worked out fine, but for Portracker, this also doesn't work. Adding:
location /portracker-router/ {
proxy_pass http://192.168.2.1:32060/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
to my nginx.conf on my NAS for it to resolve the Portracker service on my Router, does also nothing at all, same error.
Eventually, I went on to open the Browser console, and ran into this:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://nginx-alpine/portracker-router/api/health. (Reason: CORS request did not succeed). Status code: (null).
This exact same message also appears when using the IP (Router: 192.168.2.1; NAS: 192.168.2.113) for the Router '192.168.2.1' and the port 32060 I had configured.
For clarity, this is my Docker Compose config on both systems (the only variation is the volume where the files are stored):
services:
portracker:
image: mostafawahied/portracker:latest
container_name: Portracker
restart: unless-stopped
mem_limit: 256m
cpu_shares: 256
pid: "host"
cap_add:
- SYS_PTRACE
- SYS_ADMIN
security_opt:
- apparmor:unconfined
volumes:
- /volume1/docker/portracker/portracker-data:/data
- /var/run/docker.sock:/var/run/docker.sock:ro
ports:
- "32060:4999"
networks:
- docker_one
networks:
docker_one:
external: true
I can't exactly see what the issue is with my setup and why nothing in terms of trying to reach the other service works. This is both on the Router, and on the NAS, and they can see each other just fine otherwise and for all other services, just not in Portracker.