- Integrate @astrojs/sitemap for automatic sitemap generation - Add robots.txt with sitemap reference - Add Open Graph and Twitter Card meta tags to Layout - Add canonical URL and structured data slot to Layout - Add JSON-LD schema (WebSite, CollectionPage, Book, BreadcrumbList) - Create custom 404 page with navigation links - Create default OG image (SVG with graph-paper theme) - Wire SITE_URL through Docker build args for production builds - Update Caddyfile for proper 404 handling instead of SPA fallback
27 lines
621 B
YAML
27 lines
621 B
YAML
services:
|
|
mims-library:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
target: ${MODE:-production}
|
|
args:
|
|
- SITE_URL=${SITE_URL:-https://forrest.warehack.ing}
|
|
container_name: mims-library
|
|
restart: unless-stopped
|
|
environment:
|
|
- NODE_ENV=${NODE_ENV:-production}
|
|
- HOST=0.0.0.0
|
|
- PORT=4321
|
|
volumes:
|
|
# Dev mode: mount source for hot reload
|
|
- ${DEV_MOUNT:-/dev/null}:/app/src:ro
|
|
networks:
|
|
- caddy
|
|
labels:
|
|
caddy: ${CADDY_HOST:-mims.localhost}
|
|
caddy.reverse_proxy: "{{upstreams 4321}}"
|
|
|
|
networks:
|
|
caddy:
|
|
external: true
|