<br />
<br />
firefox浏览器的docker-compose,本来想抛砖引玉的,结果忘了配置字体了,下面是完全体版本,支持中文字体(If you are using a third-party language, you can modify the corresponding variables.)请在config下创建一个名为fonts的文件夹并把任意字体,上传就行。这里我推荐阿里的阿里巴巴普惠体 .ttf格式的就是,或者把自己电脑上的 C:\Windows\Fonts 路径中的ttf格式的文件上传到config下的fonts文件。
不支持中文输入!!不支持中文输入!!不支持中文输入!!只能剪切板输入
推荐firefox的原因是稳定,觉得不方便的可以用应用中心的chrome,只是给第二哥选择而已
version: '3.8'
services:
firefox:
image: linuxserver/firefox:amd64-0.24.04
container_name: firefox
security_opt:
- seccomp=unconfined # optional
environment:
- PUID=1000
- PGID=1000
- TZ=Asia/Shanghai
- LANG=zh_CN.UTF-8
- ENABLE_CJK_FONT=1
- FIREFOX_CLI=https://www.linuxserver.io/ # optional
ports:
- "3110:3000"
- "3111:3001"
volumes:
- ./config:/config
- ./config/fonts:/usr/share/fonts/other:rw # 请在config下创建一个名为fonts的文件夹
shm_size: "1gb"
restart: unless-stopped
|