You've already forked pruchase_jhw
Docker打包
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
services:
|
||||
purchase-worker:
|
||||
build: .
|
||||
image: jp-purchase-zdh-5:latest
|
||||
container_name: jp-purchase-worker
|
||||
restart: unless-stopped
|
||||
# Chromium 共享内存需求大,避免 /dev/shm 不足导致渲染崩溃
|
||||
shm_size: "2g"
|
||||
environment:
|
||||
# noVNC/VNC 访问密码,部署机必须设置:export VNC_PASSWORD=xxx
|
||||
VNC_PASSWORD: ${VNC_PASSWORD:?请在宿主机设置环境变量 VNC_PASSWORD}
|
||||
# 虚拟桌面分辨率(重采集模板图后如需调整在此修改)
|
||||
# SCREEN_RES: "1920x1080x24"
|
||||
# 容器内通过 host.docker.internal 访问宿主机服务(如本机代理)
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
ports:
|
||||
- "6080:6080" # noVNC:http://<host>:6080/vnc.html
|
||||
- "8080:8080" # 截图查看 / 账号配置 API
|
||||
# - "5900:5900" # 原生 VNC 客户端,按需开放
|
||||
volumes:
|
||||
# 浏览器登录态(user_data_dir),必须持久化
|
||||
- ./deploy/chrome-profile:/app/chrome-profile
|
||||
# accounts.yaml 所在目录(容器内 ACCOUNTS_CONFIG_PATH=/app/config/accounts.yaml)
|
||||
- ./deploy/config:/app/config
|
||||
# 截图/录屏归档与日志
|
||||
- ./deploy/archives:/archives
|
||||
- ./deploy/logs:/logs
|
||||
Reference in New Issue
Block a user