Serve Color Buttons app at colors.yebilly.me through Caddy #11

Merged
vsun1 merged 1 commits from colors-site into main 2026-09-29 04:01:40 +00:00
2 changed files with 24 additions and 0 deletions
+4
View File
@@ -2,3 +2,7 @@
git.yebilly.me { git.yebilly.me {
reverse_proxy gitea:3000 reverse_proxy gitea:3000
} }
colors.yebilly.me {
reverse_proxy color-buttons-app:3000
}
+20
View File
@@ -129,3 +129,23 @@ docker compose restart gitea # restart
docker compose logs -f gitea caddy # troubleshoot docker compose logs -f gitea caddy # troubleshoot
docker compose pull && docker compose up -d # after bumping pinned tags docker compose pull && docker compose up -d # after bumping pinned tags
``` ```
## Optional: Color Buttons site (colors.yebilly.me)
The Assignment 3 Color Buttons app shares Caddy with Gitea. It publishes no
port; Caddy reaches it on the private `gitea_web` network.
1. DNS: `A` record `colors` -> droplet IPv4; confirm with
`nslookup colors.yebilly.me dns1.registrar-servers.com`.
2. Run the existing image privately, capped to protect Gitea's RAM:
```bash
docker run -d --name color-buttons-app --restart unless-stopped \
--memory 96m --network gitea_web color-buttons-app
```
3. Add the `colors.yebilly.me` block from `Caddyfile` (edit with `nano` or
append with `cat >>`, not `sed -i`, because the file is bind-mounted), then:
```bash
docker compose exec caddy caddy reload --config /etc/caddy/Caddyfile
```
Remove it with `docker rm -f color-buttons-app`, delete the block, and reload.