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
|
working_dir: /app
|
||||||
volumes:
|
volumes:
|
||||||
- /opt/lunar/production/current:/app
|
- /opt/lunar/production/current:/app
|
||||||
|
- /opt/lunar/production/data:/app/data
|
||||||
|
- /opt/lunar/production/.env:/app/.env
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:8080:8080" # 只监听本机,对外由 nginx 反代 lunar.neatcn.com
|
- "127.0.0.1:8081:8080" # 只监听本机,对外由 nginx 反代 lunar.neatcn.com
|
||||||
env_file:
|
env_file:
|
||||||
- /opt/lunar/production/.env
|
- /opt/lunar/production/.env
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
Reference in New Issue
Block a user