Run Hitokoto API using Docker
masterYou can run the Hitokoto API in a Docker container.
Note on Networking: The default command uses --network host, which means the container shares the host's network stack. Ensure port 8000 is not already in use on your host machine. You must have Redis pre-installed on your host.
Docker Run Command:
Map your local data directory to /usr/src/app/data inside the container to persist configurations and logs.
docker run \
-v /path/to/your/data/dir:/usr/src/app/data \
--network host \
hitokoto/api