diff options
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" +``` |
