version: "3"
services:
  plex:
    image: linuxserver/plex:latest
    container_name: plex
    network_mode: host
    environment:
      - PUID=1026
      - PGID=100
      - TZ=Europe/Berlin
      - VERSION=docker
      - PLEX_CLAIM=                          # dont forget to get your plex claim here: https://www.plex.tv/claim/
    volumes:
      - /volume1/docker/plex:/config
      - /volume1/media/:/family              # change your media destination folder as you like. Even the name "family" is changeable
      - /volume1/homes:/private              # create a second (or even third or fouth) folder if you need. Or simply delete the line
    restart: unless-stopped

  tvheadend:
    image: linuxserver/tvheadend:latest
    container_name: tvheadend
    network_mode: host
    environment:
      - PUID=1026
      - PGID=100
      - TZ=Europe/Berlin
    volumes:
      - /volume1/docker/Media/TVHeadend:/config
      - /volume1/docker/Media/TVHeadend:/recordings
    restart: unless-stopped

  antennas:
    image: thejf/antennas:latest
    container_name: antennas
    network_mode: host
    environment:
      - ANTENNAS_URL=http://localhost:5004
      - TVHEADEND_URL=http://localhost:9981
      - TUNER_COUNT=2