docker-compose.yaml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. name: ruoyi-vue-pro
  2. volumes:
  3. mysql: { }
  4. postgres: { }
  5. sqlserver: { }
  6. dm8: { }
  7. kingbase: { }
  8. services:
  9. mysql:
  10. image: mysql:8.0.33
  11. restart: unless-stopped
  12. environment:
  13. TZ: Asia/Shanghai
  14. MYSQL_ROOT_PASSWORD: 123456
  15. MYSQL_DATABASE: ruoyi-vue-pro
  16. ports:
  17. - "3306:3306"
  18. volumes:
  19. - mysql:/var/lib/mysql/
  20. # 注入初始化脚本
  21. - ./mysql/ruoyi-vue-pro.sql:/docker-entrypoint-initdb.d/init.sql:ro
  22. command:
  23. --default-authentication-plugin=mysql_native_password
  24. --character-set-server=utf8mb4
  25. --collation-server=utf8mb4_general_ci
  26. --explicit_defaults_for_timestamp=true
  27. --lower_case_table_names=1
  28. postgres:
  29. image: postgres:14.2
  30. restart: unless-stopped
  31. environment:
  32. POSTGRES_USER: root
  33. POSTGRES_PASSWORD: 123456
  34. POSTGRES_DB: ruoyi-vue-pro
  35. ports:
  36. - "5432:5432"
  37. volumes:
  38. - postgres:/var/lib/postgresql/data
  39. # 注入初始化脚本
  40. - ../postgresql/quartz.sql:/docker-entrypoint-initdb.d/quartz.sql:ro
  41. - ../postgresql/ruoyi-vue-pro.sql:/docker-entrypoint-initdb.d/ruoyi-vue-pro.sql:ro
  42. oracle:
  43. image: gvenzl/oracle-xe:18-slim-faststart
  44. restart: unless-stopped
  45. environment:
  46. ## 登录信息 SID: XE user: system password: oracle
  47. ORACLE_PASSWORD: oracle
  48. ports:
  49. - "1521:1521"
  50. volumes:
  51. - ../oracle/ruoyi-vue-pro.sql:/tmp/schema.sql:ro
  52. # 创建app用户: ROOT/123456@//localhost/XEPDB1
  53. - ./oracle/1_create_user.sql:/docker-entrypoint-initdb.d/1_create_user.sql:ro
  54. - ./oracle/2_create_schema.sh:/docker-entrypoint-initdb.d/2_create_schema.sh:ro
  55. sqlserver:
  56. image: mcr.microsoft.com/mssql/server:2017-latest
  57. restart: unless-stopped
  58. environment:
  59. TZ: Asia/Shanghai
  60. ACCEPT_EULA: "Y"
  61. SA_PASSWORD: "Yudao@2024"
  62. ports:
  63. - "1433:1433"
  64. volumes:
  65. - sqlserver:/var/opt/mssql
  66. - ../sqlserver/ruoyi-vue-pro.sql:/tmp/schema.sql:ro
  67. # docker compose exec sqlserver bash /tmp/create_schema.sh
  68. - ./sqlserver/create_schema.sh:/tmp/create_schema.sh:ro
  69. dm8:
  70. # wget https://download.dameng.com/eco/dm8/dm8_20230808_rev197096_x86_rh6_64_single.tar
  71. # docker load -i dm8_20230808_rev197096_x86_rh6_64_single.tar
  72. image: dm8_single:dm8_20230808_rev197096_x86_rh6_64
  73. restart: unless-stopped
  74. environment:
  75. PAGE_SIZE: 16
  76. LD_LIBRARY_PATH: /opt/dmdbms/bin
  77. EXTENT_SIZE: 32
  78. BLANK_PAD_MODE: 1
  79. LOG_SIZE: 1024
  80. UNICODE_FLAG: 1
  81. LENGTH_IN_CHAR: 1
  82. INSTANCE_NAME: dm8_test
  83. ports:
  84. - "5236:5236"
  85. volumes:
  86. - dm8:/opt/dmdbms/data
  87. - ../dm/ruoyi-vue-pro-dm8.sql:/tmp/schema.sql:ro
  88. # docker compose exec dm8 bash -c "exec /opt/dmdbms/bin/disql SYSDBA/SYSDBA001 \`/tmp/schema.sql"
  89. kingbase:
  90. # x86_64: https://kingbase.oss-cn-beijing.aliyuncs.com/KESV8R3/V009R001C001B0025-安装包-docker/x86_64/kdb_x86_64_V009R001C001B0025.tar
  91. # aarch64: https://kingbase.oss-cn-beijing.aliyuncs.com/KESV8R3/V009R001C001B0025-安装包-docker/aarch64/kdb_aarch64_V009R001C001B0025.tar
  92. # docker load -i kdb_x86_64_V009R001C001B0025.tar
  93. image: kingbase_v009r001c001b0025_single_x86:v1
  94. restart: unless-stopped
  95. environment:
  96. DB_USER: root
  97. DB_PASSWORD: 123456
  98. ports:
  99. - "54321:54321"
  100. volumes:
  101. - kingbase:/home/kingbase/userdata/
  102. - ../kingbase/ruoyi-vue-pro.sql:/tmp/schema.sql:ro
  103. # docker compose exec kingbase bash -c "exec ksql -Uroot -d test -f /tmp/schema.sql"