docker-compose.yml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. version: "3"
  2. services:
  3. pg1:
  4. image: postgres:14
  5. network_mode: "service:main"
  6. environment:
  7. POSTGRES_USER: postgres
  8. POSTGRES_DB: postgres
  9. POSTGRES_PASSWORD: postgres
  10. POSTGRES_INITDB_ARGS: --auth-local=md5 --auth-host=md5 --auth=md5
  11. command: ["postgres", "-p", "5432", "-c", "shared_preload_libraries=pg_stat_statements", "-c", "pg_stat_statements.track=all", "-c", "pg_stat_statements.max=100000"]
  12. pg2:
  13. image: postgres:14
  14. network_mode: "service:main"
  15. environment:
  16. POSTGRES_USER: postgres
  17. POSTGRES_DB: postgres
  18. POSTGRES_PASSWORD: postgres
  19. POSTGRES_INITDB_ARGS: --auth-local=scram-sha-256 --auth-host=scram-sha-256 --auth=scram-sha-256
  20. command: ["postgres", "-p", "7432", "-c", "shared_preload_libraries=pg_stat_statements", "-c", "pg_stat_statements.track=all", "-c", "pg_stat_statements.max=100000"]
  21. pg3:
  22. image: postgres:14
  23. network_mode: "service:main"
  24. environment:
  25. POSTGRES_USER: postgres
  26. POSTGRES_DB: postgres
  27. POSTGRES_PASSWORD: postgres
  28. POSTGRES_INITDB_ARGS: --auth-local=scram-sha-256 --auth-host=scram-sha-256 --auth=scram-sha-256
  29. command: ["postgres", "-p", "8432", "-c", "shared_preload_libraries=pg_stat_statements", "-c", "pg_stat_statements.track=all", "-c", "pg_stat_statements.max=100000"]
  30. pg4:
  31. image: postgres:14
  32. network_mode: "service:main"
  33. environment:
  34. POSTGRES_USER: postgres
  35. POSTGRES_DB: postgres
  36. POSTGRES_PASSWORD: postgres
  37. POSTGRES_INITDB_ARGS: --auth-local=scram-sha-256 --auth-host=scram-sha-256 --auth=scram-sha-256
  38. command: ["postgres", "-p", "9432", "-c", "shared_preload_libraries=pg_stat_statements", "-c", "pg_stat_statements.track=all", "-c", "pg_stat_statements.max=100000"]
  39. pg5:
  40. image: postgres:14
  41. network_mode: "service:main"
  42. environment:
  43. POSTGRES_USER: postgres
  44. POSTGRES_DB: postgres
  45. POSTGRES_PASSWORD: postgres
  46. POSTGRES_INITDB_ARGS: --auth-local=md5 --auth-host=md5 --auth=md5
  47. command: ["postgres", "-c", "shared_preload_libraries=pg_stat_statements", "-c", "pg_stat_statements.track=all", "-p", "10432"]
  48. main:
  49. build: .
  50. command: ["bash", "/app/tests/docker/run.sh"]
  51. volumes:
  52. - ../../:/app/
  53. - /app/target/