Files
uhlwoogiandClaude Opus 5.5 752c69bc8b Build the image on every deploy instead of pulling it
Portainer's "Pull and redeploy" tried to pull proposal-bot from Docker Hub
and failed. pull_policy: build skips the pull and rebuilds from the repo,
so code changes take effect on redeploy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-02 23:59:48 +00:00

39 lines
1.8 KiB
YAML

# Deploy as a Portainer stack (Repository) or with `docker compose up -d --build`.
# Every setting below comes from the stack's environment variables (Portainer) or a .env file (CLI).
services:
proposal-bot:
build:
context: .
image: proposal-bot:latest
# Always build from this repo on deploy; never try to pull proposal-bot from a registry.
pull_policy: build
container_name: proposal-bot
restart: unless-stopped
# Reaps the headless Chromium processes the InDesign export starts.
init: true
# Published on the host's loopback only. NPMplus (host networking) forwards to http://127.0.0.1:4181;
# other machines cannot reach the port directly.
ports:
- "${PROPOSAL_BOT_BIND:-127.0.0.1}:${PROPOSAL_BOT_PORT:-4181}:4181"
environment:
HOST: 0.0.0.0
PORT: 4181
PROPOSAL_BOT_DATA_DIR: "/app/data"
PROPOSAL_BOT_PROJECT_IMAGES_DIR: "/app/Project Images"
PROPOSAL_BOT_AUTH_REQUIRED: "${PROPOSAL_BOT_AUTH_REQUIRED:-true}"
MICROSOFT_TENANT_ID: "${MICROSOFT_TENANT_ID:-}"
MICROSOFT_CLIENT_ID: "${MICROSOFT_CLIENT_ID:-}"
MICROSOFT_CLIENT_SECRET: "${MICROSOFT_CLIENT_SECRET:-}"
MICROSOFT_REDIRECT_URI: "${MICROSOFT_REDIRECT_URI:-}"
PROPOSAL_BOT_ALLOWED_EMAILS: "${PROPOSAL_BOT_ALLOWED_EMAILS:-}"
volumes:
# Saved projects. Must be writable by UID 1000 (the container's node user).
- type: bind
source: ${PROPOSAL_BOT_DATA_HOST_PATH:?Set PROPOSAL_BOT_DATA_HOST_PATH to an absolute host folder for saved projects}
target: /app/data
# Photo library, one subfolder per typology. Add photos here on the host.
- type: bind
source: ${PROPOSAL_BOT_PROJECT_IMAGES_HOST_PATH:?Set PROPOSAL_BOT_PROJECT_IMAGES_HOST_PATH to an absolute host folder for the photo library}
target: /app/Project Images
read_only: true