# Ghost - Professzionális blog és hírlevél platform # Domain: ${SUBDOMAIN}.${DOMAIN} # Database: None (file-based) # RAM: ~150M (mem_limit: 512M) | Pi-compatible: No # # Environment variables: # DOMAIN - Your domain (e.g., demo-felhom.eu) services: ghost: image: ghost:6.73.0-alpine container_name: ghost restart: unless-stopped environment: - TZ=Europe/Budapest - NODE_ENV=production - url=https://${SUBDOMAIN}.${DOMAIN} - database__client=sqlite3 - database__connection__filename=content/data/ghost.db # NEW-DEVICE SIGN-IN (R-1090). Ghost 6.67.0 sends a 6-digit code by e-mail when staff sign in on a # device it has not seen (`security.staffDeviceVerification`, default true: ghost/core/core/shared/ # config/defaults.json:30; read at core/server/services/auth/session/index.js:65; only the very first # sign-in skips it, core/server/api/endpoints/session.js:27). With no mail configured that sign-in # fails with 500 „Failed to send email" — measured on demo-hp 9201 2026-10-16: the third client was # locked out (felhom.eu audits/romm-ghost-2026-10-16/C1). So the check is OFF unless the household # has app e-mail on: `.felhom.yml` smtp_mapping.extra turns it on together with the mail settings # (the Vaultwarden _ENABLE_SMTP pattern). Ghost parses env values (`parseValues: true`, loader.ts:38), # so "true"/"false" arrive as booleans. - security__staffDeviceVerification=${GHOST_STAFF_DEVICE_VERIFICATION:-false} # App e-mail (empty unless the controller injects them): the on-box shim, plaintext listener. - mail__transport=SMTP - mail__options__host=${GHOST_MAIL_HOST:-} - mail__options__port=${GHOST_MAIL_PORT:-} - mail__options__secure=false - mail__from=${GHOST_MAIL_FROM:-} volumes: - ghost_content:/var/lib/ghost/content networks: - traefik-public deploy: resources: limits: memory: 512M healthcheck: test: ["CMD", "node", "-e", "require('http').get('http://127.0.0.1:2368/',r=>{process.exit(r.statusCode<400?0:1)}).on('error',()=>process.exit(1))"] interval: 30s timeout: 5s retries: 3 start_period: 30s labels: - "traefik.enable=true" - "traefik.http.routers.ghost.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)" # R-753: this app reads the LEFTMOST X-Forwarded-For entry, which a stranger writes once traefik keeps the # tunnel's chain — so its chain is removed here (it then reads traefik's X-Real-Ip or peer; never forgeable). - "traefik.http.middlewares.ghost-xff.headers.customrequestheaders.X-Forwarded-For=" - "traefik.http.routers.ghost.middlewares=ghost-xff" - "traefik.http.routers.ghost.entrypoints=websecure" - "traefik.http.routers.ghost.tls=true" - "traefik.http.routers.ghost.tls.certresolver=letsencrypt" - "traefik.http.services.ghost.loadbalancer.server.port=2368" volumes: ghost_content: networks: traefik-public: external: true