No Description

soc-integrator.yml 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. - TZ=Asia/Bangkok
  12. - POSTGRES_DB=${SOC_INTEGRATOR_DB_NAME:-soc_integrator}
  13. - POSTGRES_USER=${SOC_INTEGRATOR_DB_USER:-soc_integrator}
  14. - POSTGRES_PASSWORD=${SOC_INTEGRATOR_DB_PASSWORD:-soc_integrator_password}
  15. healthcheck:
  16. test: ["CMD-SHELL", "pg_isready -U ${SOC_INTEGRATOR_DB_USER:-soc_integrator} -d ${SOC_INTEGRATOR_DB_NAME:-soc_integrator}"]
  17. interval: 10s
  18. timeout: 5s
  19. retries: 5
  20. volumes:
  21. - soc-integrator-db-data:/var/lib/postgresql/data
  22. networks:
  23. - soc_shared
  24. soc-integrator:
  25. build:
  26. context: ../soc-integrator
  27. dockerfile: Dockerfile
  28. container_name: soc-integrator
  29. hostname: soc-integrator
  30. restart: unless-stopped
  31. env_file:
  32. - ../soc-integrator/.env.example
  33. - ../soc-integrator/.env
  34. environment:
  35. - TZ=Asia/Bangkok
  36. - APP_ENV=${APP_ENV:-dev}
  37. - LOG_LEVEL=${LOG_LEVEL:-INFO}
  38. ports:
  39. - "${SOC_INTEGRATOR_PORT:-8088}:8080"
  40. volumes:
  41. - ../scripts:/app/scripts:ro
  42. - ../soc-integrator/app:/app/app
  43. - ../wazuh-docker/single-node/config/wazuh_cluster/lists/malicious-ioc:/ioc-lists:z
  44. depends_on:
  45. soc-integrator-db:
  46. condition: service_healthy
  47. networks:
  48. - soc_shared
  49. - shuffle_default
  50. - shuffle_swarm_executions
  51. volumes:
  52. soc-integrator-db-data:
  53. networks:
  54. soc_shared:
  55. external: true
  56. name: ${SOC_SHARED_NETWORK:-soc_shared}
  57. shuffle_default:
  58. external: true
  59. name: shuffle_shuffle
  60. shuffle_swarm_executions:
  61. external: true
  62. name: shuffle_swarm_executions