Merge pull request 'Serve Color Buttons app at colors.yebilly.me through Caddy' (#11) from colors-site into main
Reviewed-on: #11 Reviewed-by: vsun1 <vsun4046@gmail.com>
This commit was merged in pull request #11.
This commit is contained in:
@@ -2,3 +2,7 @@
|
||||
git.yebilly.me {
|
||||
reverse_proxy gitea:3000
|
||||
}
|
||||
|
||||
colors.yebilly.me {
|
||||
reverse_proxy color-buttons-app:3000
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user