Нет описания

soc-integrator.yml 1.6KB

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