Нема описа

soc-integrator.yml 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. services:
  2. soc-integrator-db:
  3. image: postgres:16-alpine
  4. container_name: soc-integrator-db
  5. hostname: soc-integrator-db
  6. restart: unless-stopped
  7. env_file:
  8. - ../soc-integrator/.env.example
  9. - ../soc-integrator/.env
  10. environment:
  11. - POSTGRES_DB=${SOC_INTEGRATOR_DB_NAME:-soc_integrator}
  12. - POSTGRES_USER=${SOC_INTEGRATOR_DB_USER:-soc_integrator}
  13. - POSTGRES_PASSWORD=${SOC_INTEGRATOR_DB_PASSWORD:-soc_integrator_password}
  14. healthcheck:
  15. test: ["CMD-SHELL", "pg_isready -U ${SOC_INTEGRATOR_DB_USER:-soc_integrator} -d ${SOC_INTEGRATOR_DB_NAME:-soc_integrator}"]
  16. interval: 10s
  17. timeout: 5s
  18. retries: 5
  19. volumes:
  20. - soc-integrator-db-data:/var/lib/postgresql/data
  21. networks:
  22. - soc_shared
  23. soc-integrator:
  24. build:
  25. context: ../soc-integrator
  26. dockerfile: Dockerfile
  27. container_name: soc-integrator
  28. hostname: soc-integrator
  29. restart: unless-stopped
  30. env_file:
  31. - ../soc-integrator/.env.example
  32. - ../soc-integrator/.env
  33. environment:
  34. - APP_ENV=${APP_ENV:-dev}
  35. - LOG_LEVEL=${LOG_LEVEL:-INFO}
  36. ports:
  37. - "${SOC_INTEGRATOR_PORT:-8088}:8080"
  38. depends_on:
  39. soc-integrator-db:
  40. condition: service_healthy
  41. networks:
  42. - soc_shared
  43. - shuffle_default
  44. - shuffle_swarm_executions
  45. volumes:
  46. soc-integrator-db-data:
  47. networks:
  48. soc_shared:
  49. external: true
  50. name: ${SOC_SHARED_NETWORK:-soc_shared}
  51. shuffle_default:
  52. external: true
  53. name: shuffle_shuffle
  54. shuffle_swarm_executions:
  55. external: true
  56. name: shuffle_swarm_executions