services: app: build: context: . target: runner ports: - "3000:3000" volumes: - app_data:/app/data environment: - DATABASE_URL=file:/app/data/prod.db - NODE_ENV=production env_file: - .env.production restart: unless-stopped healthcheck: test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/api/health"] interval: 30s timeout: 10s retries: 3 start_period: 40s # Ollama for local AI (optional) ollama: image: ollama/ollama:latest ports: - "11434:11434" volumes: - ollama_data:/root/.ollama restart: unless-stopped profiles: - with-ollama volumes: app_data: ollama_data: