docker-compose-dendrite.yml 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. version: '2'
  2. services:
  3. cache-loader:
  4. image: docker.finogeeks.club/finochat/dendrite
  5. restart: always
  6. environment:
  7. RUN_ENV: "release"
  8. SERVICE_NAME: "loader"
  9. KAFKA_ADDRS: "kafka1:9091,kafka2:9092,kafka3:9093"
  10. DB_URI: "postgres://dendrite:finochat@pg-pool:5432"
  11. SERVER_FED_CERT: "/opt/dendrite/config/server.crt"
  12. SERVER_PRIVATE_KEY: "/opt/dendrite/config/matrix_key.pem"
  13. REDIS_ADDRS: "redis://user:finochat@redis:6379/0"
  14. SERVER_NAME: "finogeeks.club"
  15. volumes:
  16. #- /Users/huguanrui/git/src/github.com/matrix-org/dendrite/log:/opt/dendrite/log
  17. - /mnt/data/logs:/opt/dendrite/log
  18. persist:
  19. image: docker.finogeeks.club/finochat/dendrite
  20. restart: always
  21. environment:
  22. RUN_ENV: "release"
  23. SERVICE_NAME: "persist"
  24. KAFKA_ADDRS: "kafka1:9091,kafka2:9092,kafka3:9093"
  25. DB_URI: "postgres://dendrite:finochat@pg-pool:5432"
  26. SERVER_FED_CERT: "/opt/dendrite/config/server.crt"
  27. SERVER_PRIVATE_KEY: "/opt/dendrite/config/matrix_key.pem"
  28. REDIS_ADDRS: "redis://user:finochat@redis:6379/0"
  29. SERVER_NAME: "finogeeks.club"
  30. volumes:
  31. #- /Users/huguanrui/git/src/github.com/matrix-org/dendrite/log:/opt/dendrite/log
  32. - /mnt/data/logs:/opt/dendrite/log
  33. depends_on:
  34. - cache-loader
  35. push:
  36. image: docker.finogeeks.club/finochat/dendrite
  37. restart: always
  38. environment:
  39. RUN_ENV: "release"
  40. SERVICE_NAME: "push"
  41. KAFKA_ADDRS: "kafka1:9091,kafka2:9092,kafka3:9093"
  42. DB_URI: "postgres://dendrite:finochat@pg-pool:5432"
  43. SERVER_FED_CERT: "/opt/dendrite/config/server.crt"
  44. SERVER_PRIVATE_KEY: "/opt/dendrite/config/matrix_key.pem"
  45. REDIS_ADDRS: "redis://user:finochat@redis:6379/0"
  46. SERVER_NAME: "finogeeks.club"
  47. volumes:
  48. #- /Users/huguanrui/git/src/github.com/matrix-org/dendrite/log:/opt/dendrite/log
  49. - /mnt/data/logs:/opt/dendrite/log
  50. depends_on:
  51. - persist
  52. sync:
  53. image: docker.finogeeks.club/finochat/dendrite
  54. restart: always
  55. environment:
  56. RUN_ENV: "release"
  57. SERVICE_NAME: "sync"
  58. KAFKA_ADDRS: "kafka1:9091,kafka2:9092,kafka3:9093"
  59. DB_URI: "postgres://dendrite:finochat@pg-pool:5432"
  60. SERVER_FED_CERT: "/opt/dendrite/config/server.crt"
  61. SERVER_PRIVATE_KEY: "/opt/dendrite/config/matrix_key.pem"
  62. REDIS_ADDRS: "redis://user:finochat@redis:6379/0"
  63. SERVER_NAME: "finogeeks.club"
  64. ports:
  65. - 8009:8008
  66. volumes:
  67. #- /Users/huguanrui/git/src/github.com/matrix-org/dendrite/log:/opt/dendrite/log
  68. - /mnt/data/logs:/opt/dendrite/log
  69. depends_on:
  70. - push
  71. front:
  72. image: docker.finogeeks.club/finochat/dendrite
  73. restart: always
  74. environment:
  75. RUN_ENV: "release"
  76. SERVICE_NAME: "front"
  77. KAFKA_ADDRS: "kafka1:9091,kafka2:9092,kafka3:9093"
  78. DB_URI: "postgres://dendrite:finochat@pg-pool:5432"
  79. SERVER_FED_CERT: "/opt/dendrite/config/server.crt"
  80. SERVER_PRIVATE_KEY: "/opt/dendrite/config/matrix_key.pem"
  81. REDIS_ADDRS: "redis://user:finochat@redis:6379/0"
  82. SERVER_NAME: "finogeeks.club"
  83. ports:
  84. - 8008:8008
  85. volumes:
  86. #- /Users/huguanrui/git/src/github.com/matrix-org/dendrite/log:/opt/dendrite/log
  87. - /mnt/data/logs:/opt/dendrite/log
  88. depends_on:
  89. - sync