Bỏ qua

Infrastructure

Tài liệu này mô tả hạ tầng dev (Docker Compose) và các điểm vận hành cơ bản. Yêu cầu hạ tầng xem docs/requirements/08-DEPLOYMENT-REQUIREMENTS.md.

Docker Compose files

  • Dev: docker-compose.dev.yml
  • Production-ish: docker-compose.yml

Repo hiện dùng mô hình multi-Postgres containers (mỗi service 1 Postgres) thay vì “single Postgres multi-DB”. Đây là lựa chọn ổn định cho local dev, dễ reset từng service DB.

Key ports

App ports

  • API Gateway: 3000
  • User Service: 3001
  • Field Service: 3002
  • Booking Service: 3003
  • Payment Service: 3004
  • Notification Service: 3005

Infra ports (dev compose)

  • Keycloak: 8090
  • Kafka UI: 8080
  • PgAdmin: 5050
  • Mongo Express: 8081
  • Redis Commander: 8082
  • SigNoz: 3301

Health checks

Mỗi service có endpoint:

  • GET /health{ status, service, timestamp } (được implement trong apps/*/src/health/*)

Troubleshooting

Xem docs/TROUBLESHOOTING.md.