You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

docker-compose.yaml 2.8 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. version: "3.7"
  2. networks:
  3. nightingale:
  4. driver: bridge
  5. services:
  6. postgres:
  7. # platform: linux/x86_64
  8. image: "postgres:12-alpine"
  9. container_name: postgres
  10. hostname: postgres
  11. restart: always
  12. ports:
  13. - "5432:5432"
  14. environment:
  15. TZ: Asia/Shanghai
  16. POSTGRES_USER: root
  17. POSTGRES_PASSWORD: 1234
  18. POSTGRES_DB: n9e_v6
  19. PGDATA: /var/lib/postgresql/data/pgdata
  20. volumes:
  21. - ./pgdata:/var/lib/postgresql/data
  22. - ./initsql_for_postgres:/docker-entrypoint-initdb.d/
  23. networks:
  24. - nightingale
  25. redis:
  26. image: "redis:7.0-alpine"
  27. container_name: redis
  28. hostname: redis
  29. restart: always
  30. ports:
  31. - "6379:6379"
  32. environment:
  33. TZ: Asia/Shanghai
  34. networks:
  35. - nightingale
  36. victoriametrics:
  37. image: victoriametrics/victoria-metrics:v1.79.12
  38. container_name: victoriametrics
  39. hostname: victoriametrics
  40. restart: always
  41. environment:
  42. TZ: Asia/Shanghai
  43. ports:
  44. - "8428:8428"
  45. networks:
  46. - nightingale
  47. command:
  48. - "--loggerTimezone=Asia/Shanghai"
  49. ibex:
  50. image: flashcatcloud/ibex:v1.2.0
  51. container_name: ibex
  52. hostname: ibex
  53. restart: always
  54. environment:
  55. GIN_MODE: release
  56. TZ: Asia/Shanghai
  57. WAIT_HOSTS: postgres:5432
  58. ports:
  59. - "10090:10090"
  60. - "20090:20090"
  61. volumes:
  62. - ./ibexetc_pg:/app/etc
  63. networks:
  64. - nightingale
  65. depends_on:
  66. - postgres
  67. links:
  68. - postgres:postgres
  69. command: >
  70. sh -c "/app/ibex server"
  71. nightingale:
  72. image: flashcatcloud/nightingale:latest
  73. container_name: nightingale
  74. hostname: nightingale
  75. restart: always
  76. environment:
  77. GIN_MODE: release
  78. TZ: Asia/Shanghai
  79. WAIT_HOSTS: postgres:5432, redis:6379
  80. volumes:
  81. - ./n9eetc_pg:/app/etc
  82. ports:
  83. - "17000:17000"
  84. networks:
  85. - nightingale
  86. depends_on:
  87. - postgres
  88. - redis
  89. - victoriametrics
  90. - ibex
  91. links:
  92. - postgres:postgres
  93. - redis:redis
  94. - victoriametrics:victoriametrics
  95. - ibex:ibex
  96. command: >
  97. sh -c "/app/n9e"
  98. categraf:
  99. image: "flashcatcloud/categraf:latest"
  100. container_name: "categraf"
  101. hostname: "categraf01"
  102. restart: always
  103. environment:
  104. TZ: Asia/Shanghai
  105. HOST_PROC: /hostfs/proc
  106. HOST_SYS: /hostfs/sys
  107. HOST_MOUNT_PREFIX: /hostfs
  108. WAIT_HOSTS: nightingale:17000, ibex:20090
  109. volumes:
  110. - ./categraf/conf:/etc/categraf/conf
  111. - /:/hostfs
  112. - /var/run/docker.sock:/var/run/docker.sock
  113. - ./prometc_vm:/etc/prometheus
  114. # ports:
  115. # - "9100:9100/tcp"
  116. networks:
  117. - nightingale
  118. depends_on:
  119. - nightingale
  120. - ibex
  121. links:
  122. - nightingale:nightingale
  123. - ibex:ibex