compose.yaml 684 B

123456789101112131415161718192021222324252627282930
  1. services:
  2. api:
  3. build:
  4. context: ..
  5. dockerfile: docker/Dockerfile
  6. ports:
  7. - "${API_PORT:-8000}:${API_PORT:-8000}"
  8. volumes:
  9. - ./config:/config
  10. environment:
  11. - TZ=${TZ:-}
  12. - SMS_GATEWAY_SECRET=${SMS_GATEWAY_SECRET:-}
  13. healthcheck:
  14. test: ["CMD", "curl", "-sf", "http://localhost:${API_PORT:-8000}/health"]
  15. interval: 30s
  16. timeout: 10s
  17. retries: 3
  18. start_period: 60s
  19. mcp:
  20. build:
  21. context: ..
  22. dockerfile: docker/Dockerfile
  23. command: ["/entrypoint.sh", "mcp"]
  24. ports:
  25. - "${MCP_PORT:-8001}:${MCP_PORT:-8001}"
  26. volumes:
  27. - ./config:/config
  28. environment:
  29. - TZ=${TZ:-}