docker-compose.yml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. version: '2'
  2. services:
  3. zookeeper:
  4. hostname: zookeeper
  5. image: 'docker.finogeeks.club/finochat/zookeeper:3.4.13'
  6. #image: 'docker.finogeeks.club/finochat/zookeeper'
  7. kafka:
  8. image: 'docker.finogeeks.club/finochat/kafka:2.11-2.0.1'
  9. #image: 'docker.finogeeks.club/finochat/kafka'
  10. ports:
  11. - 9092:9092
  12. environment:
  13. KAFKA_ADVERTISED_HOST_NAME: kafka
  14. KAFKA_ADVERTISED_PORT: 9092
  15. #KAFKA_CREATE_TOPICS: keyUpdate:1:1,clientapiOutput:1:1,dbUpdates:1:1,receiptUpdate:1:1,roomserverOutput:1:1,roomserverOutput-push:1:1,roomserverInput:1:1
  16. KAFKA_DELETE_TOPIC_ENABLE: "true"
  17. KAFKA_AUTO_CREATE_TOPICS: "true"
  18. KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
  19. KAFKA_LISTENERS: PLAINTEXT://:9092
  20. KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
  21. KAFKA_LOG_RETENTION_HOURS: 24
  22. depends_on:
  23. - zookeeper
  24. links:
  25. - 'zookeeper'
  26. redis:
  27. image: 'docker.finogeeks.club/finochat/dendrite-redis'
  28. ports:
  29. - 6379:6379
  30. #volumes:
  31. #- /mnt/data/dendrite/redis/db:/data
  32. #- /root/dendrite/db:/data
  33. #- /Users/taoruifu/work/fino/chat/dendrite/db:/data
  34. #- /Users/huguanrui/git/src/github.com/matrix-org/dendrite/db:/data
  35. #- /Users/teril/GolandProjects/finochat/dendrite/db:/data
  36. #- /Users/fadeace/GolandProjects/dendrite/db:/data
  37. #- /Users/tom/Documents/dendrite/db:/opt/redis/data
  38. #- /Users/huguanrui/git/src/github.com/matrix-org/dendrite/db:/data
  39. pg-master:
  40. image: 'docker.finogeeks.club/finochat/dendrite-db'
  41. #command: 'postgres -c max_connections=1000 -c shared_buffers=2048MB -c temp_buffers=1024MB -c work_mem=128MB -c maintenance_work_mem=1024MB -c fsync=off -c commit_delay=10 -c commit_siblings=100 -c max_wal_size=4GB'
  42. environment:
  43. POSTGRES_USER: 'postgres'
  44. POSTGRES_PASSWORD: 'postgres'
  45. POSTGRES_DB: 'postgres'
  46. PGDATA: '/var/lib/postgresql/data'
  47. REDIS_SERVER: 'redis'
  48. #network_mode: host
  49. depends_on:
  50. - redis
  51. ports:
  52. - 15432:5432
  53. #volumes:
  54. #- /mnt/data/dendrite/pg-master/data:/var/lib/postgresql/data
  55. links:
  56. - 'redis'
  57. # pg-slave:
  58. # image: 'docker.finogeeks.club/finochat/dendrite-db'
  59. # #command: 'postgres -c max_connections=1000 -c shared_buffers=2048MB -c temp_buffers=1024MB -c work_mem=128MB -c maintenance_work_mem=1024MB -c fsync=off -c commit_delay=10 -c commit_siblings=100 -c max_wal_size=4GB'
  60. # environment:
  61. # POSTGRES_USER: 'postgres'
  62. # POSTGRES_PASSWORD: 'postgres'
  63. # POSTGRES_DB: 'postgres'
  64. # PGDATA: '/var/lib/postgresql/data'
  65. # REPLICATE_FROM: 'pg-master'
  66. # depends_on:
  67. # - pg-master
  68. # #ports:
  69. # #- 15431:5432
  70. # #volumes:
  71. # #- /mnt/data/dendrite/pg-slave/data:/var/lib/postgresql/data
  72. # links:
  73. # - 'pg-master'
  74. # pg-slave2:
  75. # image: 'docker.finogeeks.club/finochat/dendrite-db'
  76. # #command: 'postgres -c max_connections=1000 -c shared_buffers=2048MB -c temp_buffers=1024MB -c work_mem=128MB -c maintenance_work_mem=1024MB -c fsync=off -c commit_delay=10 -c commit_siblings=100 -c max_wal_size=4GB'
  77. # environment:
  78. # POSTGRES_USER: 'postgres'
  79. # POSTGRES_PASSWORD: 'postgres'
  80. # POSTGRES_DB: 'postgres'
  81. # PGDATA: '/var/lib/postgresql/data'
  82. # REPLICATE_FROM: 'pg-master'
  83. # depends_on:
  84. # - pg-master
  85. # ports:
  86. # - 15431:5432
  87. # #volumes:
  88. # #- /mnt/data/dendrite/pg-slave/data:/var/lib/postgresql/data
  89. # links:
  90. # - 'pg-master'
  91. nats:
  92. image: 'docker.finogeeks.club/skunkworks/gnatsd'
  93. environment:
  94. MAX_PAYLOAD: 33554432
  95. ports:
  96. - 4222:4222
  97. # pg-pool:
  98. # image: 'docker.finogeeks.club/finochat/pgpool2'
  99. # environment:
  100. # PG_PRIMARY_SERVICE_NAME: 'pg-master'
  101. # PG_REPLICA_SERVICE_NAME: 'pg-slave'
  102. # PG_USERNAME: 'dendrite'
  103. # PG_PASSWORD: 'finochat'
  104. # NUM_INIT_CHILDREN: 100
  105. # MAX_POOL: 10
  106. # #PG_DATABASE: 'dendrite_roomserver'
  107. # depends_on:
  108. # - pg-master
  109. # - pg-slave
  110. # ports:
  111. # - 15432:5432
  112. # #volumes:
  113. # #- ./config/pgpool.conf:/pgconf/pgpoolconfigdir/pgpool.conf
  114. # #- ./config/pool_hba.conf:/pgconf/pgpoolconfigdir/pool_hba.conf
  115. # #- ./config/pool_passwd:/pgconf/pgpoolconfigdir/pool_passwd
  116. # links:
  117. # - 'pg-master'
  118. # push-service:
  119. # image: "docker.finogeeks.club/finochat/push-service:1.1.3"
  120. # privileged: true
  121. # environment:
  122. # prometheus_multiproc_dir: prometheus
  123. # staff_ios_appid: com.finogeeks.finchat.oa
  124. # staff_apns_pem: https://finogeeks:fino123321@git.finogeeks.club/catalog/finochat/raw/master/templates/finochat/apns_finochat.pem
  125. # retail_ios_appid: com.finogeeks.finchat
  126. # retail_apns_pem: https://finogeeks:fino123321@git.finogeeks.club/catalog/finochat/raw/master/templates/finochat/apns_finchat.pem
  127. # ports:
  128. # - 5000:5000
  129. # dendrite:
  130. # image: docker.finogeeks.club/finochat/dendrite
  131. # restart: always
  132. # ports:
  133. # - 8008:8008
  134. # - 8448:8448
  135. # environment:
  136. # RUN_ENV: "dev"
  137. # SERVICE_NAME: "monolith"
  138. # volumes:
  139. # - /Users/huguanrui/git/src/github.com/matrix-org/dendrite/log:/opt/dendrite/log
  140. # depends_on:
  141. # - pg-pool
  142. # - kafka
  143. # - zookeeper
  144. # - nats
  145. # links:
  146. # - 'pg-pool'
  147. # - 'pg-master'
  148. # - 'kafka'
  149. # - 'zookeeper'
  150. # - 'nats'