fix(deploy): add data volume and use port 8081 for lunar-server

This commit is contained in:
2026-08-10 18:01:17 +00:00
parent d6ce5cd0f3
commit f468cf4b94
+3 -1
View File
@@ -12,8 +12,10 @@ services:
working_dir: /app
volumes:
- /opt/lunar/production/current:/app
- /opt/lunar/production/data:/app/data
- /opt/lunar/production/.env:/app/.env
ports:
- "127.0.0.1:8080:8080" # 只监听本机,对外由 nginx 反代 lunar.neatcn.com
- "127.0.0.1:8081:8080" # 只监听本机,对外由 nginx 反代 lunar.neatcn.com
env_file:
- /opt/lunar/production/.env
restart: unless-stopped