Variables
The port the HTTP server binds to inside the container (or on the host when running locally).The default Docker Compose setup maps host port 8081 to container port 8080, so the server is reachable at
http://localhost:8081/ without changing this value.Path to the SQLite database file. The server creates the
data/ directory automatically if it does not exist.When running via Docker Compose the path is set to /app/data/iris.db so that the database sits inside the mounted volume.Path to the directory containing the compiled React dashboard static files. The Go server uses
http.FileServer to serve everything in this directory on the root route /.Inside the Docker image this is always /app/dashboard/dist, where the multi-stage build copies the Vite output.Reference Table
| Variable | Default | Description |
|---|---|---|
PORT | 8080 | The port the HTTP server binds to. |
DB_PATH | ./data/iris.db | Path to the SQLite database file. |
DASHBOARD_DIR | ./dashboard/dist | Path to the directory containing the built frontend. |
Setting Variables in Docker Compose
Pass variables through theenvironment key in docker-compose.yml:
docker-compose.yml
.env file alongside docker-compose.yml:
.env
docker-compose.yml
Setting Variables for Local Development
When running the backend directly withtask dev:backend, export variables in your shell before starting:
The server reads variables at startup. Changing them requires a restart to take effect.