services: web: # Pull prebuilt engine image from your Gitea registry image: git.riverrooks.dev/venus/river-rooks-blog:latest # Local build fallback (optional when building image locally) # build: # context: . # dockerfile: Dockerfile # args: # SITE_DOMAIN: "${SITE_DOMAIN:?Error: SITE_DOMAIN is not set. Please define SITE_DOMAIN in .env}" # SITE_URL: "${SITE_URL:-https://${SITE_DOMAIN}}" # PORT: "${PORT:-8080}" container_name: river_rooks_web restart: unless-stopped # Healthcheck is natively baked into the Dockerfile image metadata environment: - "SITE_DOMAIN=${SITE_DOMAIN:?Error: SITE_DOMAIN is not set. Please define SITE_DOMAIN in .env}" - "SITE_URL=${SITE_URL:-https://${SITE_DOMAIN}}" - "PORT=${PORT:-8080}" - "WATCH=${WATCH:-false}" volumes: # Mount external markdown posts directly into the container - "./posts:/app/src/posts" ports: - "${HOST_PORT:-${PORT:-8080}}:${PORT:-8080}" networks: - backend labels: - "traefik.enable=true" - "traefik.http.routers.blog.rule=Host(`riverrooks.dev`) || Host(`www.riverrooks.dev`)" - "traefik.http.routers.blog.entrypoints=websecure" - "traefik.http.routers.blog.tls.certresolver=basic" - "traefik.http.services.blog.loadbalancer.server.port=8080" - "traefik.docker.network=backend" networks: backend: external: true