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:
39
docker-compose.yaml
Normal file
39
docker-compose.yaml
Normal 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
|
||||
Reference in New Issue
Block a user