From 0d24f34d832edf019680336a398f440b52fa31bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90li?= <15040126243@163.com> Date: Thu, 10 Mar 2022 19:48:05 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E5=A2=9E=E5=8A=A0=20SQL=20Server=20docke?= =?UTF-8?q?r=20=E7=BC=96=E6=8E=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/docker/database.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/script/docker/database.yml b/script/docker/database.yml index 36fb576a..676f81f1 100644 --- a/script/docker/database.yml +++ b/script/docker/database.yml @@ -17,3 +17,19 @@ services: # 数据挂载 - "/docker/oracle/data:/u01/app/oracle" restart: always + + # 此镜像仅用于测试 正式环境需自行安装数据库 + sqlserver: + image: mcr.microsoft.com/mssql/server:2017-latest + container_name: sqlserver + environment: + # 时区上海 + TZ: Asia/Shanghai + ACCEPT_EULA: "Y" + SA_PASSWORD: "Ruoyi@123" + ports: + - "1433:1433" + volumes: + # 数据挂载 + - "/docker/sqlserver/data:/var/opt/mssql" + restart: always