database.yml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. version: '3'
  2. services:
  3. # 此镜像仅用于测试 正式环境需自行安装数据库
  4. # SID: XE user: system password: oracle
  5. oracle:
  6. image: tekintian/oracle12c:latest
  7. container_name: oracle
  8. environment:
  9. # 时区上海
  10. TZ: Asia/Shanghai
  11. DBCA_TOTAL_MEMORY: 16192
  12. ports:
  13. - "18080:8080"
  14. - "1521:1521"
  15. volumes:
  16. # 数据挂载
  17. - "/docker/oracle/data:/u01/app/oracle"
  18. network_mode: "host"
  19. # 此镜像仅用于测试 正式环境需自行安装数据库
  20. sqlserver:
  21. image: mcr.microsoft.com/mssql/server:2017-latest
  22. container_name: sqlserver
  23. environment:
  24. # 时区上海
  25. TZ: Asia/Shanghai
  26. ACCEPT_EULA: "Y"
  27. SA_PASSWORD: "Ruoyi@123"
  28. ports:
  29. - "1433:1433"
  30. volumes:
  31. # 数据挂载
  32. - "/docker/sqlserver/data:/var/opt/mssql"
  33. network_mode: "host"
  34. postgres:
  35. image: postgres:14.2
  36. container_name: postgres
  37. environment:
  38. POSTGRES_USER: root
  39. POSTGRES_PASSWORD: root
  40. POSTGRES_DB: postgres
  41. ports:
  42. - "5432:5432"
  43. volumes:
  44. - /docker/postgres/data:/var/lib/postgresql/data
  45. network_mode: "host"
  46. postgres13:
  47. image: postgres:13.6
  48. container_name: postgres13
  49. environment:
  50. POSTGRES_USER: root
  51. POSTGRES_PASSWORD: root
  52. POSTGRES_DB: postgres
  53. ports:
  54. - "5433:5432"
  55. volumes:
  56. - /docker/postgres13/data:/var/lib/postgresql/data
  57. network_mode: "host"