docker-compose.yaml 3.1 KB

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