Celedhrim / docker-kodi-server

Runs Kodi in headless mode with docker
MIT License
79 stars 20 forks source link

Run it from docker-compose #27

Closed Vligsu closed 2 years ago

Vligsu commented 3 years ago

Hello celedhrim, hello everyone!

I'm trying to get it running with docker-compose via Portainer, but with no success so far. Though no error messages in logs, the UPnP device does not show up. Loos like container does not check the "/path/to/kodi-server-profile".

Docker-compose yaml:

version: "2.1"
services:
  kodi-server:
    image: celedhrim/kodi-server
    container_name: kodi-server
    environment:
      - TZ=Europe/Berlin
      - PUID=1024
      - PGID=101
    volumes:
      - /volume1/kodi:/usr/share/kodi/portable_data celedhrim/kodi-server
    ports:
      - 8089:8089  # web access
    restart: unless-stopped

Container logs:

W: [pulseaudio] main.c: Running in system mode, but --disallow-exit not set.
W: [pulseaudio] main.c: Running in system mode, but --disallow-module-loading not set.
N: [pulseaudio] main.c: Running in system mode, forcibly disabling SHM mode.
N: [pulseaudio] main.c: Running in system mode, forcibly disabling exit idle time.

What do I miss? Any help appreciated :)

Celedhrim commented 3 years ago

I'm run it in a swarm cluster like this :

version: "3"
services:
  kodi:
    image: celedhrim/kodi-server:matrix
    ports:
      - 8089:8089
      - 9090:9090
      - 9777:9777/udp
    volumes:
      - /home/kodi/server-profiles/current:/usr/share/kodi/portable_data

maybe you miss some ports ?

Vligsu commented 3 years ago

@Celedhrim, thanks for your reply. I'll check it and report back in a few days.