Commit 5448cff3 by Administrator

Update docker-compose.yml

1 parent 5d686bc9
...@@ -2,18 +2,18 @@ services: ...@@ -2,18 +2,18 @@ services:
heatmap: heatmap:
build: . build: .
ports: ports:
- "8787:8787" - "8876:8787"
environment: environment:
SERVER_PORT: "8787" SERVER_PORT: "8787"
# 务必强随机:openssl rand -hex 32 # 务必强随机:openssl rand -hex 32
AUTH_SECRET: "${AUTH_SECRET}" AUTH_SECRET: "${AUTH_SECRET}"
# 首次初始化(可选):容器无账号文件时建默认账号;生效后可删 env 或用 add:account 改密 # 首次初始化(可选)
BOOTSTRAP_USER: "${BOOTSTRAP_USER:-}" BOOTSTRAP_USER: "${BOOTSTRAP_USER:-}"
BOOTSTRAP_PASSWORD: "${BOOTSTRAP_PASSWORD:-}" BOOTSTRAP_PASSWORD: "${BOOTSTRAP_PASSWORD:-}"
volumes: volumes:
# 账号持久化:容器重建/更新不丢新增账号 # 账号持久化
- server-data:/app/packages/server/data - /data/soft/nodejs_project/cx-backend-data:/app/packages/server/data
cpus: 2
mem_limit: 2g
restart: unless-stopped restart: unless-stopped
volumes:
server-data:
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!