Fathom provides a Docker image you can use. You can use it in one of the following ways:
The image is available on Docker Hub. To use it, run docker run -p 8080:8080 samuelmeuli/fathom:latest.
- Ensure you have Docker installed.
- From the project root, build the image with
docker build -t fathom .. - Start the container with
docker run -p 8080:8080 fathom.
Here's an example docker-compose.yml file for Fathom:
version: "3"
services:
fathom:
image: samuelmeuli/fathom:latest
environment:
- "FATHOM_SERVER_ADDR=:8080"
- "FATHOM_DATABASE_DRIVER=sqlite3"
- "FATHOM_DATABASE_NAME=/app/db/fathom.db"
- "FATHOM_DATABASE_USER=your@email.com"
- "FATHOM_DATABASE_PASSWORD=your-password"
- "FATHOM_SECRET=your-secret"
volumes:
- /path/to/your/db:/app/db
restart: alwaysYou can execute it by running docker-compose up.