# Stack per Arcane — deploy del portfolio sull'MS01.
# Il container espone la porta 3000 solo su localhost: il traffico pubblico
# arriva dal tunnel cloudflared installato sull'host (service:
# http://localhost:3000).
name: portfolio

services:
  portfolio:
    image: ghcr.io/lucatomei/lucatomei-portfolio:latest
    container_name: lucatomei-portfolio
    restart: unless-stopped
    pull_policy: always
    ports:
      - "127.0.0.1:3000:3000"
    environment:
      TELEGRAM_BOT_TOKEN: ${TELEGRAM_BOT_TOKEN:-1188315596:AAFoDFLTBhlDJbxj7IVKJK_W0tEGL9c42Hc}
      TELEGRAM_CHAT_ID: ${TELEGRAM_CHAT_ID:-303679205}
    healthcheck:
      test: ["CMD", "wget", "-qO-", "http://127.0.0.1:3000/api/health"]
      interval: 30s
      timeout: 5s
      start_period: 10s
      retries: 3
