Featured image of post Drugie życie starego laptopa. Zainstaluj Ubuntu, Docker i uruchamiamy Jellyfin

Drugie życie starego laptopa. Zainstaluj Ubuntu, Docker i uruchamiamy Jellyfin

W tym filmie dowiecie się jak ze starego laptopa zrobić domowe centrum rozrywki. Wspólnie przejdziemy krok po kroku przez instalację systemu Linux (Ununtu Server), dowiemy się czym jest Docker i dlaczego jest super, i w końcu uruchomimy domowy serwer Jellyfin, który pozwoli nam oglądać filmy na telewizorze.

jellyfin/docker-compose.yml

services:
  jellyfin:
    image: jellyfin/jellyfin
    container_name: jellyfin
    user: 1000:1000
    network_mode: 'host'
    volumes:
      - /var/jellyfin/config:/config
      - /var/jellyfin/cache:/cache
      - type: bind
        source: /var/jellyfin/media
        target: /media
      # Optional - extra fonts to be used during transcoding with subtitle burn-in
      - type: bind
        source: /var/jellyfin/fonts
        target: /usr/local/share/fonts/custom
        read_only: true
    restart: 'unless-stopped'
    # Optional - alternative address used for autodiscovery
    environment:
      - JELLYFIN_PublishedServerUrl=http://jellyfin.local
    # Optional - may be necessary for docker healthcheck to pass if running in host network mode
    extra_hosts:
      - 'host.docker.internal:host-gateway'

dockurr/docker-compose.yml

version: '3.8'

services:
  samba:
    image: dockurr/samba
    container_name: samba
    environment:
      - USER=samba
      - PASS=SecretPass!
      - NAME=Data
    ports:
      - "445:445"
    volumes:
      - /var/jellyfi/media:/storage
    restart: always