mirror of
https://github.com/thegeneralist01/archivr
synced 2026-07-22 03:05:32 +02:00
fix: address code review issues with Docker setup
- .gitignore: whitelist Dockerfile, docker-compose.yml, docker/ so they are actually tracked (the * catch-all was silently dropping them) - Dockerfile: build and ship the archivr CLI alongside archivr-server so users can run `archivr init` inside the container on first setup - docker/config.example.toml: fix archive_path to point at the .archivr subdirectory that archivr init creates (not the parent directory), which is what read_archive_paths expects - docs/README.md: replace the bare mkdir quickstart step with `archivr init`, explain why mkdir is insufficient; add a callout that auth_db_path must be set explicitly to a writable path when the config mount is read-only
This commit is contained in:
parent
2ba832ad59
commit
38d3066ee4
5 changed files with 170 additions and 3 deletions
32
docker/config.example.toml
Normal file
32
docker/config.example.toml
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
# archivr-server.toml — example configuration for Docker deployment.
|
||||
#
|
||||
# Copy this file to ./config/archivr-server.toml (next to docker-compose.yml),
|
||||
# edit it to suit your setup, then run:
|
||||
#
|
||||
# docker compose up -d
|
||||
#
|
||||
# The bind address defaults to 127.0.0.1:8080. When running under Docker,
|
||||
# set ARCHIVR_BIND=0.0.0.0:8080 in the environment (docker-compose.yml does
|
||||
# this already) — the env var takes precedence over the value below.
|
||||
|
||||
# bind = "0.0.0.0:8080"
|
||||
|
||||
# Path to the server-level authentication database.
|
||||
# Must be on a persistent volume so it survives container restarts.
|
||||
auth_db_path = "/data/archivr-auth.sqlite"
|
||||
|
||||
# Define one or more archives.
|
||||
# archive_path must point to the .archivr directory created by `archivr init`,
|
||||
# on the persistent data volume (/data by default).
|
||||
# Initialize each archive before starting the server (see Docker quickstart step 2).
|
||||
|
||||
[[archives]]
|
||||
id = "main"
|
||||
label = "Main Archive"
|
||||
archive_path = "/data/archives/main/.archivr"
|
||||
|
||||
# Add more archives as needed:
|
||||
# [[archives]]
|
||||
# id = "videos"
|
||||
# label = "Videos"
|
||||
# archive_path = "/data/archives/videos/.archivr"
|
||||
Loading…
Add table
Add a link
Reference in a new issue