Add Technical Kiwi website with Go, templ, and HTMX.

Single-page site with gallery by album and event, contact form over SMTP,
Docker dev/prod setup, and on-server image derivatives. Gallery photos stay
local (app/images/ is gitignored).

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-05-25 23:57:59 +12:00
parent c21be097b0
commit 509e7ccb43
33 changed files with 2635 additions and 1 deletions

39
docker-compose.yaml Normal file
View File

@@ -0,0 +1,39 @@
version: '3.9'
services:
website:
image: technical.kiwi/website
container_name: technicalkiwi
build: ./
env_file:
- .env
#networks:
# - caddy
labels:
caddy: technicalkiwi
caddy.reverse_proxy: "{{upstreams 8080}}"
dev:
build:
context: .
dockerfile: Dockerfile.dev
container_name: technicalkiwi-dev
ports:
- "7331:7331" # templ live-reload proxy — open this in the browser
- "8080:8080" # app direct (no auto-reload)
volumes:
- ./app:/app
- ${GOMODCACHE}:/go/pkg/mod
- ${GOCACHE}:/root/.cache/go-build
env_file:
- .env
environment:
ADDR: ":8080"
GOMODCACHE: /go/pkg/mod
GOCACHE: /root/.cache/go-build
working_dir: /app
#networks:
# caddy:
# external: true
# name: caddy