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

This commit is contained in:
2026-09-28 23:56:27 -04:00
parent f0292ed11c
commit e84693a05a
2 changed files with 24 additions and 0 deletions
+20
View File
@@ -129,3 +129,23 @@ docker compose restart gitea # restart
docker compose logs -f gitea caddy # troubleshoot
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.