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-dev.yaml 2.6 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. # Copyright © 2023 OpenIM open source community. All rights reserved.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. version: "3"
  15. networks:
  16. openkf-network:
  17. ipam:
  18. driver: default
  19. config:
  20. - subnet: '177.8.0.0/16'
  21. services:
  22. server:
  23. image: openkf-server:latest
  24. container_name: openkf-server
  25. hostname: openkf-server
  26. restart: always
  27. ports:
  28. - '10010:10010'
  29. depends_on:
  30. - mysql
  31. - redis
  32. - minio
  33. volumes:
  34. - openkf_logs:/openkf-server/logs
  35. working_dir: /openkf-server
  36. links:
  37. - mysql
  38. - redis
  39. - minio
  40. networks:
  41. openkf-network:
  42. ipv4_address: 177.8.0.2
  43. mysql:
  44. image: mysql:5.7
  45. container_name: openkf-mysql
  46. hostname: openkf-mysql
  47. command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
  48. restart: always
  49. ports:
  50. - "3406:3306"
  51. environment:
  52. - MYSQL_ROOT_PASSWORD=123123
  53. - MYSQL_DATABASE=openkf
  54. # - MYSQL_USER=root
  55. # - MYSQL_PASSWORD=123123
  56. # - MYSQL_MAX_LIFETIME=120
  57. # - MYSQL_MAX_OPEN_CONNS=100
  58. # - MYSQL_MAX_IDLE_CONNS=20
  59. volumes:
  60. - mysql_data_57:/var/lib/mysql
  61. networks:
  62. openkf-network:
  63. ipv4_address: 177.8.0.3
  64. redis:
  65. image: redis:latest
  66. container_name: openkf-redis
  67. hostname: openkf-redis
  68. command: redis-server --requirepass openkf
  69. restart: always
  70. ports:
  71. - '6479:6379'
  72. volumes:
  73. - redis_data:/data
  74. networks:
  75. openkf-network:
  76. ipv4_address: 177.8.0.4
  77. minio:
  78. image: minio/minio
  79. container_name: openkf-minio
  80. ports:
  81. - "9100:9000"
  82. - "9190:9090"
  83. volumes:
  84. - minio_data:/data
  85. - minio_config:/root/.minio
  86. environment:
  87. - MINIO_ROOT_USER=test123123
  88. - MINIO_ROOT_PASSWORD=test123123
  89. - MINIO_BUCKET=openkf
  90. - MINIO_SERVER_URL=http://127.0.0.1:9100
  91. command: minio server /data --console-address ':9090'
  92. networks:
  93. openkf-network:
  94. ipv4_address: 177.8.0.5
  95. volumes:
  96. openkf_logs:
  97. mysql_data_57:
  98. redis_data:
  99. minio_data:
  100. minio_config: