Administrator 4 月之前
父節點
當前提交
5db9e29f52
共有 2 個文件被更改,包括 4 次插入1 次删除
  1. 0 0
      db_init/lahelice20250819.sql
  2. 4 1
      docker-compose.yml

lahelice20250819.sql → db_init/lahelice20250819.sql 查看文件


+ 4 - 1
docker-compose.yml 查看文件

@@ -9,7 +9,8 @@ services:
9 9
       POSTGRES_PASSWORD: 7qUNs4q5c3U7KTrehv0V
10 10
       POSTGRES_DB: factorytracedb
11 11
     volumes:
12
-      - ./db/lahelice20250819.sql:/docker-entrypoint-initdb.d/lahelice20250819.sql
12
+      - ./db_init/lahelice20250819.sql:/docker-entrypoint-initdb.d/lahelice20250819.sql
13
+      - pgdata:/var/lib/postgresql/data
13 14
     ports:
14 15
       - "5432:5432"
15 16
     networks:
@@ -44,3 +45,5 @@ services:
44 45
 networks:
45 46
   net-vespot:
46 47
     driver: bridge
48
+volumes:
49
+  pgdata: