services: agent: build: . image: laimiao-agent:latest init: true restart: unless-stopped env_file: - .env environment: NODE_ENV: production HOST: 0.0.0.0 PORT: "8100" DATA_DIR: /app/data ports: - "127.0.0.1:8100:8100" read_only: true tmpfs: - /tmp:rw,noexec,nosuid,nodev,size=64m volumes: - agent-data:/app/data user: "1000:1000" cap_drop: - ALL security_opt: - no-new-privileges:true pids_limit: 256 healthcheck: test: - CMD - node - -e - "fetch('http://127.0.0.1:8100/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))" interval: 30s timeout: 5s retries: 3 start_period: 20s volumes: agent-data: