diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-08-17 13:38:15 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-08-17 13:47:36 +0200 |
| commit | 5384d0431af2242a13553da7456677238b3726a7 (patch) | |
| tree | 8bde21957dedb1757e73900f4febb9b838a7c13a /README.md | |
| parent | 8af00445f3bcfbaedb14792b4e2304a2b2470cce (diff) | |
feat: deploy by docker on vps
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -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" +``` |
