Нет описания

soc-integrator.yml 1.7KB

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