Jump to content

Successful Docker HW Transcoding - ArchLinux


bigverm23

Recommended Posts

bigverm23

Steps to reproduce:

 

1. install docker version 19.03

2. install docker compose( mine is version 1.24.1)

3. add emby service to docker-compose.yml (mine is version 3.6)

 

docker-compose.yml (reverse proxied)

 

  emby:
    container_name: emby
    image: emby/embyserver:latest
    volumes:
      - ${USERDIR}/docker/emby/config:/config
    environment:
      - PUID=${PUID}
      - PGID=${PGID}
      - GIDLIST=967
      - TZ=${TZ}
      - NVIDIA_VISIBLE_DEVICES=all
      - NVIDIA_DRIVER_CAPABILITIES=all

    ports:
      - "8096:8096"
      - "8920:8920"
    restart: unless-stopped
    networks:
      - traefik_proxy
    labels:
      - "traefik.enable=true"
      - "traefik.tags=frontend"
      - "traefik.frontend.passHostHeader=true"
      - "traefik.admin.backend=emby"
      - "traefik.admin.frontend.rule=Host:emby.${DOMAINNAME}"
      - "traefik.admin.port=8096"

 

4. install nvidia-container-runtime

5. edit /etc/docker/daemon.json to ensure both runtime and default-runtime are set to "nvidia"

 

{
    "default-runtime": "nvidia",
    "runtimes": {
        "nvidia": {
            "path": "/usr/bin/nvidia-container-runtime",
            "runtimeArgs": []
        }
    },

}

6. restart docker service

7. docker-compose up -d emby

 

 

Edited by bigverm23
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...