# ![IPTVnator](<https://daemonless.io/images/logos/iptvnator.png>) IPTVnator

[![Build Status](<https://img.shields.io/github/actions/workflow/status/daemonless/iptvnator/build.yaml?style=flat-square&label=Build&color=green>)](<https://github.com/daemonless/iptvnator/actions>) [![Last Commit](<https://img.shields.io/github/last-commit/daemonless/iptvnator?style=flat-square&label=Last+Commit&color=blue>)](<https://github.com/daemonless/iptvnator/commits>) [![OCI Pulls](<https://img.shields.io/docker/pulls/daemonless/iptvnator?style=flat-square&label=OCI+Pulls&color=blue>)](<https://hub.docker.com/r/daemonless/iptvnator>)

Cross-platform IPTV player web app supporting M3U/M3U8 playlists, Xtream Codes, and Stalker portals.

- [![IPTVnator screenshot 1](<https://daemonless.io/images/screenshots/iptvnator/01-dashboard-cinematic.webp>)](</images/screenshots/iptvnator/01-dashboard-cinematic.webp>)
- [![IPTVnator screenshot 2](<https://daemonless.io/images/screenshots/iptvnator/02-player.webp>)](</images/screenshots/iptvnator/02-player.webp>)
- [![IPTVnator screenshot 3](<https://daemonless.io/images/screenshots/iptvnator/03-movie-details-cinematic.webp>)](</images/screenshots/iptvnator/03-movie-details-cinematic.webp>)
- [![IPTVnator screenshot 4](<https://daemonless.io/images/screenshots/iptvnator/04-series-details-cinematic.webp>)](</images/screenshots/iptvnator/04-series-details-cinematic.webp>)
- [![IPTVnator screenshot 5](<https://daemonless.io/images/screenshots/iptvnator/05-global-search.webp>)](</images/screenshots/iptvnator/05-global-search.webp>)
- [![IPTVnator screenshot 6](<https://daemonless.io/images/screenshots/iptvnator/06-dashboard-themes.webp>)](</images/screenshots/iptvnator/06-dashboard-themes.webp>)
- [![IPTVnator screenshot 7](<https://daemonless.io/images/screenshots/iptvnator/07-settings.webp>)](</images/screenshots/iptvnator/07-settings.webp>)
- [![IPTVnator screenshot 8](<https://daemonless.io/images/screenshots/iptvnator/08-add-playlist.webp>)](</images/screenshots/iptvnator/08-add-playlist.webp>)

|  |  |
| --- | --- |
| **Port** | `4333` |
| **Registry** | [`ghcr.io/daemonless/iptvnator`](<https://github.com/daemonless/iptvnator/pkgs/container/iptvnator>) |
| **Daemonless** | [daemonless/iptvnator](<https://github.com/daemonless/iptvnator>) |
| **Source** | [4gray/iptvnator](<https://github.com/4gray/iptvnator>) |
| **Website** | [4gray.github.io/iptvnator](<https://4gray.github.io/iptvnator/>) |

## Prerequisites

Before deploying, ensure your host environment is ready. See the [Quick Start Guide](<https://daemonless.io/guides/quick-start/index.md>) for host setup instructions, including the security model for host vs. container privileges.

## Deployment

**Customize Paths, UID & Ports**

```
services:
  iptvnator:
    image: "ghcr.io/daemonless/iptvnator:latest"
    container_name: iptvnator
    environment:
      - PUID=1000  # User ID for the application process
      - PGID=1000  # Group ID for the application process
      - TZ=Etc/UTC  # Timezone for the container
      - BACKEND_URL=/api  # Browser-facing backend API path used by the PWA
      - CLIENT_URL=http://localhost:4333  # Allowed browser origin(s) for backend CORS (comma-separated)
      - IPTVNATOR_STORAGE=server  # Storage mode: 'server' persists data in /config, 'none' runs stateless
      - IPTVNATOR_PROXY_ALLOW_PRIVATE_NETWORKS=0  # Set to '1' to allow proxying private/LAN IPTV endpoints
      # - IPTVNATOR_ACCESS_TOKEN=  # Shared access token required by clients before accessing the library
    volumes:
      - "/containers/iptvnator:/config"
    ports:
      - "4333:4333"
    # always (not unless-stopped) so FreeBSD's podman rc.d auto-starts it at boot
    restart: always
```

Save as `compose.yaml`, then run `podman-compose up -d`.

> [!WARNING]
>
> Exposing ports in AppJail means that your service can be reached from remote hosts. If that is not your intention, do not expose the ports and communicate with the service using the jail's IPv4 address or hostname assigned by the virtual network.

```
# .env

DIRECTOR_PROJECT=iptvnator
PUID=1000
PGID=1000
TZ=Etc/UTC
BACKEND_URL=/api
CLIENT_URL=http://localhost:4333
IPTVNATOR_STORAGE=server
IPTVNATOR_PROXY_ALLOW_PRIVATE_NETWORKS=0
```

```
# appjail-director.yml

options:
  - virtualnet: ':<random> default'
  - nat:
services:
  iptvnator:
    name: iptvnator
    options:
      - container: 'args:--pull'
      - expose: '4333:4333 proto:tcp'
    oci:
      user: root
      environment:
        - PUID: !ENV '${PUID}'
        - PGID: !ENV '${PGID}'
        - TZ: !ENV '${TZ}'
        - BACKEND_URL: !ENV '${BACKEND_URL}'
        - CLIENT_URL: !ENV '${CLIENT_URL}'
        - IPTVNATOR_STORAGE: !ENV '${IPTVNATOR_STORAGE}'
        - IPTVNATOR_PROXY_ALLOW_PRIVATE_NETWORKS: !ENV '${IPTVNATOR_PROXY_ALLOW_PRIVATE_NETWORKS}'
    volumes:
      - iptvnator: /config
volumes:
  iptvnator:
    device: '/containers/iptvnator'
```

```
# Makejail

ARG tag=latest

OPTION container=boot
OPTION overwrite=force
OPTION from=ghcr.io/daemonless/iptvnator:${tag}
```

Save the files above, then run `appjail-director up`.

Install and manage **IPTVnator** on FreeBSD with [fjord](<https://fjord.daemonless.io>):

```
fjord install iptvnator
```

Or open the **App Store** in the fjord web UI and install **IPTVnator** from the wizard. New to fjord? See the [Install Guide](<https://fjord.daemonless.io/install/>).

> [!WARNING]
>
> **Experimental**
>
> Bastille's OCI support is experimental. It requires `buildah` and shares the host network stack (`inherit`). Mount volumes with `--volume HOST JAIL`; without it, image-declared volumes are stored under `${bastille_volumesdir}/${jail}`.

```
services:
  iptvnator:
    name: iptvnator
    image: "ghcr.io/daemonless/iptvnator:latest"
    network:
      - mode: host
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
      - BACKEND_URL=/api
      - CLIENT_URL=http://localhost:4333
      - IPTVNATOR_STORAGE=server
      - IPTVNATOR_PROXY_ALLOW_PRIVATE_NETWORKS=0
    volumes:
      - "/containers/iptvnator:/config"
```

Save as `bastille-compose.yml`, then run `bastille up`.

Open `http://<server>:4333` from another machine (the server's own browser can't use a published port).

## Parameters

### Environment Variables

| Variable | Default | Description |
| --- | --- | --- |
| `PUID` | `1000` | User ID for the application process |
| `PGID` | `1000` | Group ID for the application process |
| `TZ` | `Etc/UTC` | Timezone for the container |
| `BACKEND_URL` | `/api` | Browser-facing backend API path used by the PWA |
| `CLIENT_URL` | `http://localhost:4333` | Allowed browser origin(s) for backend CORS (comma-separated) |
| `IPTVNATOR_STORAGE` | `server` | Storage mode: 'server' persists data in /config, 'none' runs stateless |
| `IPTVNATOR_PROXY_ALLOW_PRIVATE_NETWORKS` | `0` | Set to '1' to allow proxying private/LAN IPTV endpoints |
| `IPTVNATOR_ACCESS_TOKEN` | `<IPTVNATOR_ACCESS_TOKEN>` | Shared access token required by clients before accessing the library |

### Volumes

| Path | Description |
| --- | --- |
| `/config` | Application data directory (SQLite database under /config/databases) |

### Ports

| Port | Protocol | Description |
| --- | --- | --- |
| `4333` | TCP | Web UI and proxied backend API |

## Version Tags

| Tag | Description | Best For |
| :--- | :--- | :--- |
| `latest` | **Upstream Binary**. Built from official release. | Most users — recommended. |

> [!NOTE]
>
> **Implementation Details**
>
> - **Architectures:** amd64
> - **User:** `bsd` (UID/GID set via [PUID/PGID](<https://daemonless.io/guides/permissions/index.md>)). Defaults to `1000:1000`.
> - **Base:** Built on `ghcr.io/daemonless/base` (FreeBSD 15.1).

---

Need help? Join our [Discord](<https://discord.gg/Kb9tkhecZT>) community.
