2024-10-11, 02:22 AM
(This post was last modified: 2024-10-11, 02:33 AM by contabs. Edited 2 times in total.)
Okay so after a few attempts with expose it worked with 'ports'. For anyone in the future who has this issue, NPM is still forwarding to 8096, even though it assigned me a random ephemeral port bc I forgot to specify lol. Here is my redacted docker-compose.yml:
services:
jellyfin:
image: jellyfin/jellyfin
container_name: jellyfin
user: 1000:1000
network_mode: '<user defined bridge name>'
ports:
- 8096 # Unless you specify with port:port it will assign a random port that forwards to 8096
volumes:
- /path/to/configconfig
- /path/to/cachecache
- /path/to/mediamedia
restart: 'unless-stopped'
Thanks for the help!
services:
jellyfin:
image: jellyfin/jellyfin
container_name: jellyfin
user: 1000:1000
network_mode: '<user defined bridge name>'
ports:
- 8096 # Unless you specify with port:port it will assign a random port that forwards to 8096
volumes:
- /path/to/configconfig
- /path/to/cachecache
- /path/to/mediamedia
restart: 'unless-stopped'
Thanks for the help!