spindle
spindle copied to clipboard
[Bug] spindle binds on localhost?
hi! kinda new to docker, but when setting up spindle through docker compose, it binds on 127.0.0.1:3590, instead of 0.0.0.0:3590 (or at least a LAN network).
compose: (if this helps lol)
services:
spindle-backend:
image: ghcr.io/xmorose/spindle:latest
# build: . # build from source instead of pulling
container_name: spindle-backend # plugin reaches it at http://spindle-backend:3590
restart: unless-stopped
env_file:
- spindle.env
environment:
WEB_DIR: /app/web
STATS_DB_PATH: /app/data/stats.db
COVER_CACHE_DIR: /app/data/covers
NAVIDROME_DB_PATH: /nddata/navidrome.db
DEFAULT_USER: fily
ports:
- 192.168.1.72:3590:3590 # localhost only; terminate TLS in a proxy in front
volumes:
- spindle-data:/app/data # stats.db + cover cache
# CHANGE-ME: your Navidrome data dir (the folder that contains navidrome.db)
- /srv/navdat:/nddata
networks:
- navidrome_default
volumes:
spindle-data: null
networks:
navidrome_default:
external: true
x-dockge:
urls:
- http://192.168.1.72:3590
That's the port publishing in the compose file, not the app — the server binds 0.0.0.0:3590 inside the container. The example ships with "127.0.0.1:3590:3590" because I run it behind nginx on the host.
For LAN access, drop the host part:
ports:
- "3590:3590"
Your 192.168.1.72:3590:3590 works too, but the container has to be recreated for a ports change to take effect — docker compose up -d, then check docker ps.
yup, removing the ip fixed it! :p