Нема описа

soc-integrator.yml 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. volumes:
  39. - ../scripts:/app/scripts:ro
  40. - ../soc-integrator/app:/app/app
  41. depends_on:
  42. soc-integrator-db:
  43. condition: service_healthy
  44. networks:
  45. - soc_shared
  46. - shuffle_default
  47. - shuffle_swarm_executions
  48. volumes:
  49. soc-integrator-db-data:
  50. networks:
  51. soc_shared:
  52. external: true
  53. name: ${SOC_SHARED_NETWORK:-soc_shared}
  54. shuffle_default:
  55. external: true
  56. name: shuffle_shuffle
  57. shuffle_swarm_executions:
  58. external: true
  59. name: shuffle_swarm_executions