fix(deploy): add data volume and use port 8081 for lunar-server
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user