Add Docker deployment with deploy.sh
- 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]>
This commit is contained in:
1 parent
cb29d58aa2
commit
f8e851fdb9
5 files changed
+97
-5
No files matched your search
+8
-4
@@ -1,7 +1,11 @@
|
||||
# Dashboard login (HTTP Basic Auth). Both are required.
|
||||
# Dashboard login (HTTP Basic Auth). Both are required. Don't use quotes.
|
||||
DASHBOARD_USER=admin
|
||||
DASHBOARD_PASSWORD=change-me
|
||||
|
||||
# Optional
|
||||
ADDR=:8080
|
||||
DATA_FILE=data/pocketkv.json
|
||||
# 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
|
||||
Reference in new issue
Block a user