docker-compose.yaml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. name: ruoyi-vue-pro
  2. volumes:
  3. mysql: { }
  4. postgres: { }
  5. sqlserver: { }
  6. dm8: { }
  7. kingbase: { }
  8. opengauss: { }
  9. services:
  10. mysql:
  11. image: mysql:8.0.33
  12. restart: unless-stopped
  13. environment:
  14. TZ: Asia/Shanghai
  15. MYSQL_ROOT_PASSWORD: 123456
  16. MYSQL_DATABASE: ruoyi-vue-pro
  17. ports:
  18. - "3306:3306"
  19. volumes:
  20. - mysql:/var/lib/mysql/
  21. # 注入初始化脚本
  22. - ./mysql/ruoyi-vue-pro.sql:/docker-entrypoint-initdb.d/init.sql:ro
  23. command:
  24. --default-authentication-plugin=mysql_native_password
  25. --character-set-server=utf8mb4
  26. --collation-server=utf8mb4_general_ci
  27. --explicit_defaults_for_timestamp=true
  28. --lower_case_table_names=1
  29. postgres:
  30. image: postgres:14.2
  31. restart: unless-stopped
  32. environment:
  33. POSTGRES_USER: root
  34. POSTGRES_PASSWORD: 123456
  35. POSTGRES_DB: ruoyi-vue-pro
  36. ports:
  37. - "5432:5432"
  38. volumes:
  39. - postgres:/var/lib/postgresql/data
  40. # 注入初始化脚本
  41. - ../postgresql/quartz.sql:/docker-entrypoint-initdb.d/quartz.sql:ro
  42. - ../postgresql/ruoyi-vue-pro.sql:/docker-entrypoint-initdb.d/ruoyi-vue-pro.sql:ro
  43. oracle:
  44. image: gvenzl/oracle-xe:18-slim-faststart
  45. restart: unless-stopped
  46. environment:
  47. ## 登录信息 SID: XE user: system password: oracle
  48. ORACLE_PASSWORD: oracle
  49. ports:
  50. - "1521:1521"
  51. volumes:
  52. - ../oracle/ruoyi-vue-pro.sql:/tmp/schema.sql:ro
  53. # 创建app用户: ROOT/123456@//localhost/XEPDB1
  54. - ./oracle/1_create_user.sql:/docker-entrypoint-initdb.d/1_create_user.sql:ro
  55. - ./oracle/2_create_schema.sh:/docker-entrypoint-initdb.d/2_create_schema.sh:ro
  56. oracle_m1:
  57. image: einslib/oracle-19c:19.3.0-ee-slim-faststart
  58. restart: unless-stopped
  59. environment:
  60. ## 登录信息 SID: FREE user: system password: oracle
  61. ORACLE_PASSWORD: oracle
  62. ports:
  63. - "1521:1521"
  64. volumes:
  65. - ../oracle/ruoyi-vue-pro.sql:/tmp/schema.sql:ro
  66. # 创建app用户: ROOT/123456@//localhost/XEPDB1
  67. - ./oracle/1_create_user.sql:/docker-entrypoint-initdb.d/1_create_user.sql:ro
  68. - ./oracle/2_create_schema.sh:/docker-entrypoint-initdb.d/2_create_schema.sh:ro
  69. sqlserver:
  70. image: mcr.microsoft.com/mssql/server:2017-latest
  71. restart: unless-stopped
  72. environment:
  73. TZ: Asia/Shanghai
  74. ACCEPT_EULA: "Y"
  75. SA_PASSWORD: "Yudao@2024"
  76. ports:
  77. - "1433:1433"
  78. volumes:
  79. - sqlserver:/var/opt/mssql
  80. - ../sqlserver/ruoyi-vue-pro.sql:/tmp/schema.sql:ro
  81. # docker compose exec sqlserver bash /tmp/create_schema.sh
  82. - ./sqlserver/create_schema.sh:/tmp/create_schema.sh:ro
  83. dm8:
  84. # docker load -i dm8_20240715_x86_rh6_rq_single.tar
  85. image: dm8_single:dm8_20240715_rev232765_x86_rh6_64
  86. restart: unless-stopped
  87. environment:
  88. PAGE_SIZE: 16
  89. LD_LIBRARY_PATH: /opt/dmdbms/bin
  90. EXTENT_SIZE: 32
  91. BLANK_PAD_MODE: 1
  92. LOG_SIZE: 1024
  93. UNICODE_FLAG: 1
  94. LENGTH_IN_CHAR: 1
  95. INSTANCE_NAME: dm8_test
  96. ports:
  97. - "5236:5236"
  98. volumes:
  99. - dm8:/opt/dmdbms/data
  100. - ../dm/ruoyi-vue-pro-dm8.sql:/tmp/schema.sql:ro
  101. kingbase:
  102. image: kingbase_v009r001c001b0025_single_x86:v1
  103. # image: kingbase_v009r001c001b0025_single_arm:v1
  104. restart: unless-stopped
  105. environment:
  106. DB_USER: root
  107. DB_PASSWORD: 123456
  108. ports:
  109. - "54321:54321"
  110. volumes:
  111. - kingbase:/home/kingbase/userdata
  112. - ../kingbase/ruoyi-vue-pro.sql:/tmp/schema.sql:ro
  113. opengauss:
  114. image: opengauss/opengauss:5.0.0
  115. restart: unless-stopped
  116. environment:
  117. GS_USERNAME: root
  118. GS_PASSWORD: Yudao@2024
  119. LD_LIBRARY_PATH: /usr/local/opengauss/lib:/usr/lib
  120. ports:
  121. - "5432:5432"
  122. volumes:
  123. - opengauss:/var/lib/opengauss
  124. - ../opengauss/ruoyi-vue-pro.sql:/tmp/schema.sql:ro
  125. # docker compose exec opengauss bash -c '/usr/local/opengauss/bin/gsql -U $GS_USERNAME -W $GS_PASSWORD -d postgres -f /tmp/schema.sql'