Docker Compose 部署 jlesage/firefox

services:
  firefox:
    image: swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/jlesage/firefox:v26.01.1
    container_name: firefox
    restart: unless-stopped          # 对应 -d 的常驻运行习惯,可按需删除
    ports:
      - "5800:5800"
    volumes:
      - ./firefox:/config:rw         # :rw 是默认值,可省略为 ./firefox:/config
    environment:
      TZ: Asia/Shanghai
      ENABLE_CJK_FONT: "1"
      SECURE_CONNECTION: "1"
      VNC_PASSWORD: "密码"
    devices:
      - /dev/dri:/dev/dri            # 硬件加速,对应 --device

docker compose up -d

posted @ 2026-10-18 23:06  木子欢儿  阅读(22)  评论(0)    收藏  举报