Açıklama Yok

soc-integrator.yml 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. volumes:
  44. soc-integrator-db-data:
  45. networks:
  46. soc_shared:
  47. external: true
  48. name: ${SOC_SHARED_NETWORK:-soc_shared}