aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2026-08-17 13:38:15 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2026-08-17 13:47:36 +0200
commit5384d0431af2242a13553da7456677238b3726a7 (patch)
tree8bde21957dedb1757e73900f4febb9b838a7c13a /README.md
parent8af00445f3bcfbaedb14792b4e2304a2b2470cce (diff)
feat: deploy by docker on vps
Diffstat (limited to 'README.md')
-rw-r--r--README.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/README.md b/README.md
index e4e9ca6..eb7dca9 100644
--- a/README.md
+++ b/README.md
@@ -53,3 +53,24 @@ pics.example.com {
go test ./...
```
+## Deploy
+
+The VPS runs the gallery as a Docker Compose service behind Caddy at
+`https://pics.kagamino.dev`. The replacement service starts with a fresh local
+`./gallery-data` folder next to the VPS Compose file; the former systemd data is
+archived separately and is not imported.
+
+Authenticate the local and VPS Docker clients once, then deploy with:
+
+```sh
+docker login container.registry.kagamino.dev
+ssh ubuntu@feed.kagamino.dev "sudo docker login container.registry.kagamino.dev"
+mise run deploy
+```
+
+Create a new gallery in the empty deployment from the VPS:
+
+```sh
+ssh ubuntu@feed.kagamino.dev \
+ "sudo docker compose exec gallery /app/gallery create <name> '<password>' --data /app/data"
+```