# ------------------------------------------------------------------
# Ghost stack: Resume (mildgrim.com)
# No optional profiles — this is the leanest, fastest stack.
#
# .env is the single source of truth for Compose interpolation and is
# committed so Portainer (Git + relative path volumes) auto-loads it.
# ------------------------------------------------------------------

# Ghost image version. Previously unset, which meant the compose default
# "6-alpine" floated silently across all three sites — no way to tell what was
# actually running. Bump this and redeploy to upgrade.
# TODO before production: add a digest (docker buildx imagetools inspect ghost:6.70.0-alpine).
GHOST_VERSION=6.70.0-alpine

# Enable optional containers. Resume needs none.
COMPOSE_PROFILES=

# Public domain Ghost will run on.
DOMAIN=mildgrim.com

# Host port published for this stack's Caddy (HTTP). The VPS Caddy edge
# terminates TLS and reverse-proxies mildgrim.com here over WireGuard.
HTTP_PORT=10010

# Database settings.
# WARNING: do not change these after the database has been initialised.
DATABASE_ROOT_PASSWORD=4b1e8668b4d95f935e92e89ecdda5ac7dfac0c304a3a30e8df5af4fda70ddd81
DATABASE_USER=ghost
DATABASE_PASSWORD=81007b9a918bd221d0e07d68b02926a1a9ed3f12cd8b56006eeeaef97e32cfe7

# ------------------------------------------------------------------
# SMTP (Stalwart on the VPS) — transactional mail only.
# Required for admin login emails, staff invites and password resets.
# ------------------------------------------------------------------
mail__transport=SMTP
mail__options__host=smtp.mildgrim.com
mail__options__port=465
mail__options__secure=true
mail__options__auth__user=ghost-admin@mildgrim.com
mail__options__auth__pass=e34ac8a3cb11106f0f5695a40969933be8718a14ddb0e1ea249307261b07cdfe
mail__from="'Mildgrim Resume' <ghost-resume@mildgrim.com>"

# ------------------------------------------------------------------
# Data locations. ABSOLUTE host paths so they survive Portainer repo
# re-clones (a relative ./data would be wiped on every redeploy).
# ------------------------------------------------------------------
UPLOAD_LOCATION=/home/mildgrim/ghost-resume/data/ghost
MYSQL_DATA_LOCATION=/home/mildgrim/ghost-resume/data/mysql
