From 7b6dc06a066ebb4c061cb8b031587155e8f35fe8 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期三, 31 五月 2023 22:52:06 +0800 Subject: [PATCH] update 优化 代码生成器 --- script/docker/database.yml | 30 ++++++++++++++++++++++++++++-- 1 files changed, 28 insertions(+), 2 deletions(-) diff --git a/script/docker/database.yml b/script/docker/database.yml index 676f81f..0368fd2 100644 --- a/script/docker/database.yml +++ b/script/docker/database.yml @@ -16,7 +16,7 @@ volumes: # 鏁版嵁鎸傝浇 - "/docker/oracle/data:/u01/app/oracle" - restart: always + network_mode: "host" # 姝ら暅鍍忎粎鐢ㄤ簬娴嬭瘯 姝e紡鐜闇�鑷瀹夎鏁版嵁搴� sqlserver: @@ -32,4 +32,30 @@ volumes: # 鏁版嵁鎸傝浇 - "/docker/sqlserver/data:/var/opt/mssql" - restart: always + network_mode: "host" + + postgres: + image: postgres:14.2 + container_name: postgres + environment: + POSTGRES_USER: root + POSTGRES_PASSWORD: root + POSTGRES_DB: postgres + ports: + - "5432:5432" + volumes: + - /docker/postgres/data:/var/lib/postgresql/data + network_mode: "host" + + postgres13: + image: postgres:13.6 + container_name: postgres13 + environment: + POSTGRES_USER: root + POSTGRES_PASSWORD: root + POSTGRES_DB: postgres + ports: + - "5433:5432" + volumes: + - /docker/postgres13/data:/var/lib/postgresql/data + network_mode: "host" -- Gitblit v1.9.3