Hi, folks! I'm relatively new to self-hosting and am trying to operate slskd through a wireguard-forwarded port.

I set up an instance of slskd in a docker container with a gluetun dependency, kind like this, and everything seems to be working well, but none of the shares are actually available.

I think I may need to mess with my router, but I haven't been able to find a clear answer on this...most of the tutorials stop at the docker compose and slskd config files. Have any of y'all gotten around this?

you are viewing a single comment's thread
view the rest of the comments
[–] [S] 1 point 1 month ago
services:

 gluetunslskd:
  image: qmcgaw/gluetun:latest
  container_name: gluetunslskd
  cap_add:
   - NET_ADMIN
  devices:
   - /dev/net/tun:/dev/net/tun
  ports:
   - 8000:8000
   - 5031:5031
  volumes:
   - ./app:/app
  environment:
   PUID: 1000
   PGID: 1000
   VPN_SERVICE_PROVIDER: protonvpn
   VPN_TYPE: wireguard
   WIREGUARD_PRIVATE_KEY: -----
   WIREGUARD_ADDRESSES: -----
   SERVER_COUNTRIES: -----
   TZ: -----
   PORT_FORWARD_ONLY: on
   VPN_PORT_FORWARDING: on
   HTTP_CONTROL_SERVER_AUTH_DEFAULT_ROLE: '{"auth":"apikey","apikey":"-----"}'
   VPN_PORT_FORWARDING_UP_COMMAND: >
    '/bin/sh -c "sed -i 's/listen_port:.*/listen_port\: {{PORTS}}/' /app/slskd.yml"'
  restart: unless-stopped

 slskd:
  image: slskd/slskd:latest
  container_name: slskd
  environment:
   TZ: -----
   PUID: 1000
   PGID: 1000
   SLSKD_SLSK_ADDRESS: server.slsknet.org
   SLSKD_SLSK_PORT: 2242
   SLSKD_SHARED_DIR: /music
   SLSKD_DOWNLOADS_DIR: /downloads
   SLSKD_INCOMPLETE_DIR: /incomplete
   SLSKD_USERNAME: -----
   SLSKD_PASSWORD: -----
   SLSKD_SLSK_USERNAME: -----
   SLSKD_SLSK_PASSWORD: -----
   SLSKD_VPN: true
   SLSKD_VPN_PORT_FORWARDING: true
   SLSKD_VPN_GLUETUN_URL: http://localhost:8000/
   SLSKD_VPN_GLUETUN_API_KEY: -----
  volumes:
   - ./app:/app
   - /home/user/media/music/library:/music:ro
   - /home/user/media/music/downloads:/downloads:rw
   - /home/user/media/music/incomplete:/incomplete:rw
  network_mode: 'service:gluetunslskd'
  depends_on:
   gluetunslskd:
    condition: service_healthy
  restart: unless-stopped
  • source
  • parent