Ctrl K
ComunidadGuías…

docker-compose.yml

Rama main · réplica de lectura del repositorio original.

Archivo original ↗Preguntar a KiBot
services:
  quickynab:
    image: ghcr.io/maiis/quickynab:latest

    # Or build locally from source:
    # build: .

    container_name: quickynab
    restart: unless-stopped
    ports:
      - "3000:3000"
    environment:
      - NODE_ENV=production
      - YNAB_ACCESS_TOKEN=${YNAB_ACCESS_TOKEN}
      # Optional: Allowed origins for CORS
      # - ALLOWED_ORIGINS=${ALLOWED_ORIGINS}
    # Optional: Mount .env file if you prefer file-based config
    # volumes:
    #   - ./.env:/app/.env:ro

    healthcheck:
      test:
        [
          "CMD",
          "bun",
          "-e",
          "fetch('http://localhost:3000/api/health').then(r => process.exit(r.ok ? 0 : 1))",
        ]
      interval: 30s
      timeout: 3s
      start_period: 5s
      retries: 3