Files
my-docker-compose/media.yml
2024-10-16 22:14:53 +08:00

151 lines
5.1 KiB
YAML

version: "3"
services:
jellyfin:
image: nyanmisaka/jellyfin
container_name: jellyfin
user: 0:0
network_mode: "host"
privileged: true
volumes:
- /mnt/data/opt/jeffyfin/config:/config
- /mnt/data/opt/jeffyfin/cache:/cache
- /mnt/data/opt/jeffyfin/media:/media
- /etc/hosts:/etc/hosts:ro
- /etc/timezone:/etc/timezone:ro
restart:
"unless-stopped"
# Optional - alternative address used for autodiscovery
environment:
- JELLYFIN_PublishedServerUrl=https//media.hiiragi.club:8081/video/
- LANGUAGE=zh_CN
- PGID=0
- PUID=0
devices:
- /dev/dri/renderD128:/dev/dri/renderD128
- /dev/dri/card0:/dev/dri/card0
# Optional - may be necessary for docker healthcheck to pass if running in host network mode
extra_hosts:
- "host.docker.internal:host-gateway"
labels:
- homepage.group=多媒体
- homepage.name=Jeffyfin
- homepage.icon=https://picbed.liliyamol.cn/i/2022/11/23/637dee730b614.ico
- homepage.href=https://media.liliyamol.cn/video/
- homepage.description=Media server
- homepage.widget.type=jellyfin
- homepage.widget.url=https://media.liliyamol.cn/video
- homepage.widget.key=d76a7af638b341ccae077c64f46d7e44
- homepage.widget.enableBlocks=true # optional, defaults to false
- homepage.widget.enableNowPlaying=true # optional, defaults to true
- homepage.widget.enableUser=true # optional, defaults to false
- homepage.widget.showEpisodeNumber=true # optional, defaults to false
- homepage.widget.expandOneStreamToTwoRows=false # optional, defaults to true
navidrome:
image: deluan/navidrome:latest
user: 0:0 # should be owner of volumes
ports:
- "4533:4533"
restart: unless-stopped
environment:
# Optional: put your config options customization here. Examples:
ND_SCANSCHEDULE: "@every 5m"
ND_LOGLEVEL: info
ND_SESSIONTIMEOUT: 24h
ND_BASEURL: "/music"
ND_LASTFM_ENABLED: "true"
ND_SPOTIFY_ID: 5cb906b454a04cecad1f33cfeac196f9
ND_SPOTIFY_SECRET: 6157014f23e846f2aed46fb503a32818
ND_LASTFM_APIKEY: b9b38ed9785ce62500480397ed32d6df
ND_LASTFM_SECRET: 1526226660096245b231dd0aa0478dab
ND_LASTFM_LANGUAGE: zh
ND_ENABLESHARING: "true"
PGID: 0
PUID: 0
ND_ENABLETRANSCODINGCONFIG: "true"
ND_DEFAULTLANGUAGE: zh
ND_SEARCHFULLSTRING: "true"
volumes:
- /mnt/data/opt/navidrome/config:/data
- /mnt/data/opt/navidrome/data:/music:ro
- /etc/timezone:/etc/timezone:ro
labels:
- homepage.group=多媒体
- homepage.name=Navidrome
- homepage.icon=https://picbed.liliyamol.cn/i/2022/11/23/637def891caec.png
- homepage.href=https://media.liliyamol.cn/music
- homepage.widget.type=navidrome
- homepage.widget.url=https://media.liliyamol.cn/music
- homepage.widget.user=fan@liliyamol.cn
- homepage.widget.token=34dc74d73b64c2f38f791f1feb8b2e5a
- homepage.widget.salt=heiyu518
# picard:
# image: mikenye/picard:latest
# ports:
# - "6122:5800"
# volumes:
# - "/mnt/data/opt/picard:/config:rw"
# - "/mnt/data/mol/files/Music:/storage:rw"
# - /etc/timezone:/etc/timezone:ro
# environment:
# USER_ID: 0
calibre-web:
image: lscr.io/linuxserver/calibre-web:latest
container_name: calibre-web
environment:
- PUID=0
- PGID=0
- http_proxy=http://192.168.124.12:7890
- https_proxy=http://192.168.124.12:7890
- TZ=Asia/Shanghai
- DOCKER_MODS=linuxserver/mods:universal-calibre
- OAUTHLIB_RELAX_TOKEN_SCOPE=1 #optional
- CALIBRE_LOCALHOST=true
volumes:
- /mnt/data/opt/calibre/data:/config
- /mnt/data/opt/calibre/books:/books
depends_on:
- douban-rs-api
ports:
- 8083:8083
restart: unless-stopped
labels:
- homepage.group=多媒体
- homepage.name=Calibre
- homepage.icon=https://picbed.liliyamol.cn/i/2024/02/05/65c081c83db27.ico
- homepage.href=https://book.liliyamol.cn
- homepage.widget.type=calibreweb
- homepage.widget.url=https://book.liliyamol.cn
- homepage.widget.username=fan@liliyamol.cn
- homepage.widget.password=m%Bn$w5jgiNsNC
douban-rs-api:
restart: always
image: ghcr.io/cxfksword/douban-api-rs
komga:
image: gotson/komga
container_name: komga
volumes:
- /mnt/data/opt/komga/config:/config
- /mnt/data/opt/komga/data:/data
- /etc/timezone:/etc/timezone:ro
ports:
- 7008:25600
user: "0:0"
# remove the whole environment section if you don't need it
environment:
- SERVER_SERVLET_CONTEXT_PATH=/comics
restart: unless-stopped
labels:
- homepage.group=多媒体
- homepage.name=Komga
- homepage.icon=https://picbed.liliyamol.cn/i/2022/11/23/637e0c532f593.png
- homepage.href=https://media.liliyamol.cn/comics/
- homepage.widget.type=komga
- homepage.widget.url=https://media.liliyamol.cn/comics
- homepage.widget.username=fan@liliyamol.cn
- homepage.widget.password=m%Bn$w5jgiNsNC