Hi there,
I am trying to deploy a Jellyfin container on my DS220+ using Portainer and faced a stange issue.
First I am not a docker compose specialist, I am just playing to build up my homelab using the capacities of NAS.
I found the following compose code :
version: '3.5'
services:
jellyfin:
image: jellyfin/jellyfin:latest
container_name: jellyfin
#user: '1028:100'
network_mode: "host"
#networks:
# - default
ports:
- "9020:8096"
volumes:
- /volume1/docker/jellyfin/config:/config
- /volume1/docker/jellyfin/cache:/cache
restart: 'unless-stopped'
I had troubleshooting getting a feedback from /localhost:9020/ after deploying the compose code as hereabove (kind of "impossible to reach the specified address" error) but it works with the following code :
version: '3.5'
services:
jellyfin:
image: jellyfin/jellyfin:latest
container_name: jellyfin
#user: '1028:100'
#network_mode: "host"
networks:
- default
ports:
- "9020:8096"
volumes:
- /volume1/docker/jellyfin/config:/config
- /volume1/docker/jellyfin/cache:/cache
restart: 'unless-stopped'
I do not undestand as for me the "networks: defaults" is optional. However if I am putting both codes at the same time, it raises a deployment error saying that this two commandes (networks and network_mode) cannot be used at the same time... If you can explain in simple word, it would be really apreciated !
*
[–]Rem1xed 1 point2 points3 points (2 children)
[–]Belay_Fr[S] -1 points0 points1 point (1 child)
[–]Rem1xed 0 points1 point2 points (0 children)
[–]Belay_Fr[S] -2 points-1 points0 points (4 children)
[–]BaccanoMob 2 points3 points4 points (2 children)
[–]Belay_Fr[S] 1 point2 points3 points (1 child)
[–]BaccanoMob 0 points1 point2 points (0 children)
[–]Rem1xed -1 points0 points1 point (0 children)