diff --git a/sql/tools/README.md b/sql/tools/README.md index 6236b16f20..94c5300a54 100644 --- a/sql/tools/README.md +++ b/sql/tools/README.md @@ -19,10 +19,14 @@ docker compose up -d mysql #### 1.2 Oracle ```Bash +## x86 版本 docker compose up -d oracle + +## MacBook Apple Silicon +docker compose up -d oracle_m1 ``` -暂不支持 MacBook Apple Silicon,因为 Oracle 官方没有提供 Apple Silicon 版本的 Docker 镜像。 +> 注意:如果使用 MacBook Apple Silicon 版本,它的 ORACLE_SID 不是 XE,而是 FREE!!! ### 1.3 PostgreSQL diff --git a/sql/tools/docker-compose.yaml b/sql/tools/docker-compose.yaml index 85623c1d95..0fa95130b2 100644 --- a/sql/tools/docker-compose.yaml +++ b/sql/tools/docker-compose.yaml @@ -58,6 +58,20 @@ services: - ./oracle/1_create_user.sql:/docker-entrypoint-initdb.d/1_create_user.sql:ro - ./oracle/2_create_schema.sh:/docker-entrypoint-initdb.d/2_create_schema.sh:ro + oracle_m1: + image: einslib/oracle-19c:19.3.0-ee-slim-faststart + restart: unless-stopped + environment: + ## 登录信息 SID: FREE user: system password: oracle + ORACLE_PASSWORD: oracle + ports: + - "1521:1521" + volumes: + - ../oracle/ruoyi-vue-pro.sql:/tmp/schema.sql:ro + # 创建app用户: ROOT/123456@//localhost/XEPDB1 + - ./oracle/1_create_user.sql:/docker-entrypoint-initdb.d/1_create_user.sql:ro + - ./oracle/2_create_schema.sh:/docker-entrypoint-initdb.d/2_create_schema.sh:ro + sqlserver: image: mcr.microsoft.com/mssql/server:2017-latest restart: unless-stopped