AniFlow

Documentation

Installation

Run AniFlow with Docker Compose: the compose file, folders, permissions and updating.

Requirements

The image is aniflow/aniflow. It is built for amd64 and arm64, so it runs on ordinary PCs and servers as well as on a Raspberry Pi.

The compose file

You can run AniFlow with Docker Compose or with a plain docker run command. Both do the same thing; use whichever you prefer.

Docker Compose

Create a folder for the stack and put a docker-compose.yml in it:

services:
  aniflow:
    image: aniflow/aniflow:latest
    container_name: aniflow
    environment:
      TZ: Europe/Berlin
    user: "1000:1000"
    ports:
      - "9630:9630"
    volumes:
      - /docker/aniflow/config:/config
      - /docker/aniflow/data:/data
      - /media/anime:/media
      - /media/downloads:/downloads
    restart: unless-stopped

Change these to match your system:

Docker CLI

The same setup as a single command:

docker run -d \
  --name=aniflow \
  --user 1000:1000 \
  -e TZ=Europe/Berlin \
  -p 9630:9630 \
  -v /docker/aniflow/config:/config \
  -v /docker/aniflow/data:/data \
  -v /media/anime:/media \
  -v /media/downloads:/downloads \
  --restart unless-stopped \
  aniflow/aniflow:latest

Change the same things as in the compose file: TZ, --user and the host paths on the left of each -v. Add -v /media/import:/import for the optional hand-over folder.

The volumes

Inside the containerWhat it is
/configAniFlow's settings and log.
/dataIts database and cover cache. Back this up.
/mediaYour anime.
/downloadsWhere your download client saves, as AniFlow sees it.
/import (optional)Only in Shoko Server mode: the hand-over folder that Shoko watches for imports.

To use the hand-over folder, add a line such as - /media/import:/import under volumes. Put it on the same filesystem as your media if you can, so Shoko can move files instead of copying them. How the folders relate to each other, and why the paths in your download client must match, is explained in Media folders and libraries.

Creating folders and ownership

The user in user: must own the config and data folders, and must be able to read and write the media and download folders. Create the first two and set the owner before the first start:

mkdir -p /docker/aniflow/config /docker/aniflow/data
chown -R 1000:1000 /docker/aniflow

Use the same numbers you put in user:. If AniFlow cannot write to a folder, the Checks page says which one.

TrueNAS and the NFSv4 ACL error

On TrueNAS the apps user is usually 568:568, so use user: "568:568" and give that user the folders.

If the container refuses to start with chmod ... operation not permitted, the dataset uses NFSv4 ACLs in restricted mode, which forbids a change Docker makes on every bind mount. Switch the dataset to POSIX ACLs, or set aclmode=passthrough.

Ports

AniFlow listens on port 9630 inside the container. To use a different port on your host, change the left side of the mapping, for example "9631:9630". That is the right fix if the port is already in use.

The container's own port is set by the APP_PORT environment variable (default 9630). If you set it, the right side of the mapping must match it. Most people never need to.

Running it

With Compose:

docker compose up -d

With the Docker CLI, run the docker run command from above.

Open http://<host>:9630 (for example http://192.168.1.10:9630). The first start asks for a one-time code and runs the setup wizard; see First start and the setup wizard. The container applies database migrations itself on every start.

Updating

docker compose pull && docker compose up -d

With the Docker CLI, pull the new image, remove the old container and run the same command again:

docker pull aniflow/aniflow:latest
docker stop aniflow
docker rm aniflow
# then run the same docker run command again

Your settings and data live in the mounted folders, so they survive. Newer versions bring older data forward automatically. Before a larger update it is sensible to copy /config and /data; see Backup, restore and updating.

Note

AniFlow is built for your own network. The connection is plain HTTP. Do not expose it directly to the internet; see Security and privacy.