compose.yaml 967 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. calc:
  20. build:
  21. context: ..
  22. dockerfile: docker/Dockerfile
  23. command: ["/entrypoint.sh", "calc"]
  24. ports:
  25. - "${CALC_PORT:-8002}:${CALC_PORT:-8002}"
  26. volumes:
  27. - ./config:/config
  28. environment:
  29. - TZ=${TZ:-}
  30. - API_PORT=${CALC_PORT:-8002}
  31. mcp:
  32. build:
  33. context: ..
  34. dockerfile: docker/Dockerfile
  35. command: ["/entrypoint.sh", "mcp"]
  36. ports:
  37. - "${MCP_PORT:-8001}:${MCP_PORT:-8001}"
  38. volumes:
  39. - ./config:/config
  40. environment:
  41. - TZ=${TZ:-}