From e84693a05a9cd01263224fa8e2f97b57d2c3f672 Mon Sep 17 00:00:00 2001 From: Billye4 Date: Mon, 28 Sep 2026 23:56:27 -0400 Subject: [PATCH] Serve Color Buttons app at colors.yebilly.me through Caddy --- deploy/Caddyfile | 4 ++++ deploy/README.md | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/deploy/Caddyfile b/deploy/Caddyfile index 228b3ac..7355165 100644 --- a/deploy/Caddyfile +++ b/deploy/Caddyfile @@ -2,3 +2,7 @@ git.yebilly.me { reverse_proxy gitea:3000 } + +colors.yebilly.me { + reverse_proxy color-buttons-app:3000 +} diff --git a/deploy/README.md b/deploy/README.md index dc349ba..dcd1cdb 100644 --- a/deploy/README.md +++ b/deploy/README.md @@ -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. -- 2.54.0