services: hearth: image: madpelsm/hearth-media:${HEARTH_VERSION:?Set HEARTH_VERSION in .env to a published version} restart: unless-stopped ports: - "${HEARTH_PORT:-3000}:3000" environment: DATA_DIR: /data PORT: 3000 # Empty for the home network. Behind a reverse proxy: the exact address people open, such as # https://media.example.com. Hearth then accepts sign-ins only at that address. PUBLIC_BASE_URL: ${PUBLIC_BASE_URL:-} volumes: - hearth-data:/data - type: bind source: ${MEDIA_DIR:?Set MEDIA_DIR in .env to an existing absolute host folder} target: /media read_only: true bind: create_host_path: false stop_grace_period: 20s volumes: hearth-data: