chore: use bind mount for database data

This commit is contained in:
2026-10-23 20:23:16 +08:00
parent f6921b7b23
commit 7e2a4157aa
+3 -4
View File
@@ -13,7 +13,9 @@ services:
read_only: true read_only: true
bind: bind:
create_host_path: false create_host_path: false
- router-data:/app/data - type: bind
source: ./data
target: /app/data
security_opt: security_opt:
- no-new-privileges:true - no-new-privileges:true
cap_drop: cap_drop:
@@ -30,6 +32,3 @@ services:
options: options:
max-size: "10m" max-size: "10m"
max-file: "3" max-file: "3"
volumes:
router-data: