Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

No Format
WD=/opt/jellyfin
mkdir -p $WD/{setup,conf,cache}
cd $WD/setup
cat << 'EOF' >docker-compose.yaml
version: '3.7'

services:
 jellyfin:
    container_name: jellyfin
    image: jellyfin/jellyfin
    hostname: jellyfin
#    network_mode: host
    ports:
      - '8394:80'
    volumes:
      - type: bind
        source: /opt/jellyfin/conf/
        target: /config
      - type: bind
        source: /opt/jellyfin/confcache/
        target: /cache
    environment:
      - 'TZ=${TZ}'
      - 'JELLYFIN_PublishedServerUrl=${JELLYFIN_PublishedServerUrl}'

EOF
chmod +x docker-compose.yaml

...