vps交流

[疑问] 同一台服务器里 怎么安装两个 jellyfin


用 docker 部署

我的docker-compose.yml:

  1. version: "3.0"
  2. services:
  3.   jellyfin:
  4.     image: lscr.io/linuxserver/jellyfin
  5.     container_name: jellyfin_plex
  6.     network_mode: host
  7.     environment:
  8.       – PUID=1000
  9.       – PGID=1000
  10.       – TZ=Asia/Shanghai
  11.     volumes:
  12.       – /media/jellyfin_plex/config:/config
  13.       – /media/plex:/media
  14.     ports:
  15.       – 8096:8096
  16.     restart: unless-stopped

复制代码

想再安装一个,发现就算修改 ports 为其他端口,启动时还是会绑定到 8096,结果就是:

jellyfin_plex  | System.IO.IOException: Failed to bind to address http://0.0.0.0:8096: address already in use.
jellyfin_plex  |  —> Microsoft.AspNetCore.Connections.AddressInUseException: Address already in use
jellyfin_plex  |  —> System.Net.Sockets.SocketException (98): Address already in use

-p 8096:8098
配置文件路径也得改啊,volumes下面两行