compose.yaml 763 B

1234567891011121314151617181920212223242526272829303132
  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. - APP_BASE_URL=${APP_BASE_URL:-}
  14. healthcheck:
  15. test: ["CMD", "curl", "-sf", "http://localhost:${API_PORT:-8000}/health"]
  16. interval: 30s
  17. timeout: 10s
  18. retries: 3
  19. start_period: 60s
  20. calc:
  21. build:
  22. context: ..
  23. dockerfile: docker/Dockerfile
  24. command: ["/entrypoint.sh", "calc"]
  25. ports:
  26. - "${CALC_PORT:-8002}:${CALC_PORT:-8002}"
  27. volumes:
  28. - ./config:/config
  29. environment:
  30. - TZ=${TZ:-}
  31. - API_PORT=${CALC_PORT:-8002}