
Docker-compose项目脚本:
version: “3”
services:
wps-office:
image: lscr.io/linuxserver/wps-office:chinese
container_name: wps
privileged: true
security_opt:
– seccomp:unconfined
environment:
– PUID=1000
– PGID=1000
– TZ=Asia/Shanghai
– CUSTOM_USER=admin
– PASSWORD=admin
volumes:
– /vol1/1000/Docker/wps/config:/config
– /vol1/1000/Docker/wps/fonts:/usr/share/fonts/wps-fonts # 字体文件夹,新增字体可放在该目录下
ports:
– 3000:3000
– 3001:3001
shm_size: “1gb” # 共享内存为 1GB,防止使用过程内存不足
devices:
– /dev/dri:/dev/dri
restart: always