version: '3.5'
services:
ubuntu-xfce-vnc:
container_name: xfce
image: imlala/ubuntu-xfce-vnc-novnc:latest
shm_size: "1gb" # 防止高分辨率下Chromium崩溃,如果内存足够也可以加大一点点
ports:
- 5900:5900 # TigerVNC的服务端口(保证端口是没被占用的,冒号右边的端口不能改,左边的可以改)
- 6080:6080 # noVNC的服务端口,注意事项同上
environment:
- VNC_PASSWD=PAS3WorD # 改成你自己想要的密码
- GEOMETRY=1280x720 # 屏幕分辨率,800×600/1024×768诸如此类的可自己调整
- DEPTH=24 # 颜色位数16/24/32可用,越高画面越细腻,但网络不好的也会更卡
volumes:
- ./Downloads:/root/Downloads # Chromium/Deluge/qBittorrent/Transmission下载的文件默认保存位置都是root/Downloads下
- ./Documents:/root/Documents # 映射一些其他目录
- ./Pictures:/root/Pictures
- ./Videos:/root/Videos
- ./Music:/root/Music
restart: unless-stopped
version: "2.1"
services:
webtop:
image: ghcr.io/linuxserver/webtop:ubuntu-mate #choose your flavor
container_name: webtop
#privileged: true #optional but not needed unless you are running kde or i3 or other tools
environment:
- PUID=1000 # based on id
- PGID=1000 # based on group
- TZ=America/Chicago # your timezone
volumes:
- /home/user/webtop/config:/config #home directory
#- /var/run/docker.sock:/var/run/docker.sock #optional only if you need access to docker winthin this container
ports:
- 3000:3000
shm_size: "2gb" #optional but set to 1GB or higher to prevent browser crashes
restart: unless-stopped
# env_file: #only necessary if you want to change the password, see .env file
# - .env
安装office
apt install libreoffice
安装
评论区