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.3 kB

3 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. version: "3.7"
  2. services:
  3. mysql:
  4. # platform: linux/x86_64
  5. image: "mysql:5.7"
  6. container_name: mysql
  7. hostname: mysql
  8. restart: always
  9. environment:
  10. TZ: Asia/Shanghai
  11. MYSQL_ROOT_PASSWORD: 1234
  12. volumes:
  13. - ./mysqldata:/var/lib/mysql/
  14. - ./initsql:/docker-entrypoint-initdb.d/
  15. - ./mysqletc/my.cnf:/etc/my.cnf
  16. network_mode: host
  17. redis:
  18. image: "redis:6.2"
  19. container_name: redis
  20. hostname: redis
  21. restart: always
  22. environment:
  23. TZ: Asia/Shanghai
  24. network_mode: host
  25. prometheus:
  26. image: prom/prometheus
  27. container_name: prometheus
  28. hostname: prometheus
  29. restart: always
  30. environment:
  31. TZ: Asia/Shanghai
  32. volumes:
  33. - ./prometc:/etc/prometheus
  34. network_mode: host
  35. command:
  36. - "--config.file=/etc/prometheus/prometheus.yml"
  37. - "--storage.tsdb.path=/prometheus"
  38. - "--web.console.libraries=/usr/share/prometheus/console_libraries"
  39. - "--web.console.templates=/usr/share/prometheus/consoles"
  40. - "--enable-feature=remote-write-receiver"
  41. - "--query.lookback-delta=2m"
  42. ibex:
  43. image: ulric2019/ibex:0.3
  44. container_name: ibex
  45. hostname: ibex
  46. restart: always
  47. environment:
  48. GIN_MODE: release
  49. TZ: Asia/Shanghai
  50. WAIT_HOSTS: 127.0.0.1:3306
  51. volumes:
  52. - ./ibexetc:/app/etc
  53. network_mode: host
  54. depends_on:
  55. - mysql
  56. command: >
  57. sh -c "/wait && /app/ibex server"
  58. n9e:
  59. image: flashcatcloud/nightingale:latest
  60. container_name: n9e
  61. hostname: n9e
  62. restart: always
  63. environment:
  64. GIN_MODE: release
  65. TZ: Asia/Shanghai
  66. WAIT_HOSTS: 127.0.0.1:3306, 127.0.0.1:6379
  67. volumes:
  68. - ../etc:/app/etc
  69. network_mode: host
  70. depends_on:
  71. - mysql
  72. - redis
  73. - prometheus
  74. - ibex
  75. command: >
  76. sh -c "/wait && /app/n9e"
  77. categraf:
  78. image: "flashcatcloud/categraf:latest"
  79. container_name: "categraf"
  80. hostname: "categraf01"
  81. restart: always
  82. environment:
  83. TZ: Asia/Shanghai
  84. HOST_PROC: /hostfs/proc
  85. HOST_SYS: /hostfs/sys
  86. HOST_MOUNT_PREFIX: /hostfs
  87. volumes:
  88. - ./categraf/conf:/etc/categraf/conf
  89. - /:/hostfs
  90. - /var/run/docker.sock:/var/run/docker.sock
  91. network_mode: host
  92. depends_on:
  93. - n9e
  94. - ibex