Use compose.dev.yaml and compose.prod.yaml with fixed Go cache mounts, block sudo make dev, build Air outside app/tmp for rootless Docker, soften English spam checks, and simplify contact error copy. Co-authored-by: Cursor <cursoragent@cursor.com>
28 lines
546 B
YAML
28 lines
546 B
YAML
# Production website (built image, gallery on host).
|
|
# Run: make up
|
|
|
|
services:
|
|
website:
|
|
image: technical.kiwi/website
|
|
container_name: technicalkiwi
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
volumes:
|
|
- ./app/images:/app/images
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
IMAGES_DIR: /app/images
|
|
networks:
|
|
- caddy
|
|
labels:
|
|
caddy: technical.kiwi
|
|
caddy.reverse_proxy: "{{upstreams 8080}}"
|
|
caddy.tls: "admin@technical.kiwi"
|
|
|
|
networks:
|
|
caddy:
|
|
external: true
|
|
name: caddy
|