<br />
<br />
首先将飞牛应用中心下载的chromium的docker容器删除,不要在应用中心卸载,然后自己创建compose项目,将下面的复制进去,然后构建,等到新的容器重新运行之后,去应用中心启用chromium就行。如果还有什么问题可以私我
services:
chromium:
image: registry.cn-guangzhou.aliyuncs.com/fnapp/trim-chromium:latest
devices:
- /dev/dri:/dev/dri
container_name: chromium
security_opt:
- seccomp:unconfined
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
- SUBFOLDER=/chromium/
- LC_ALL=zh_CN.UTF-8
volumes:
- /var/apps/docker-chromium/shares/chromium/config:/config
ports:
- 3000:3000
- 3001:3001
shm_size: "1gb"
restart: unless-stopped
networks:
- trim-default
networks:
trim-default:
external: true
如果需要认证的话,再environment下新增CUSTOM_USER和PASSWORD环境变量即可 |