- Dockerfile: static build on alpine, runs as non-root, data on /data volume, health check on /healthz - deploy.sh: builds the image and (re)starts a detached container with restart policy, .env as env file and the pocketkv-data volume - .env.example: PORT for the host port; go-run-only settings commented out - README: Docker deployment, updates, backups and HTTPS via Caddy Co-Authored-By: Claude Opus 5.5 <[email protected]>
12 lines
383 B
Bash
12 lines
383 B
Bash
# Dashboard login (HTTP Basic Auth). Both are required. Don't use quotes.
|
|
DASHBOARD_USER=admin
|
|
DASHBOARD_PASSWORD=change-me
|
|
|
|
# Docker (deploy.sh): host port to publish on, or ip:port. Default 8080.
|
|
# Use 127.0.0.1:8080 to only allow access through a local reverse proxy.
|
|
# PORT=8080
|
|
|
|
# Only for `go run` (the container sets these itself):
|
|
# ADDR=:8080
|
|
# DATA_FILE=data/pocketkv.json
|