# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: Firefox
spec:
    description: Firefox Browser in Docker
    icon: https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/firefox-logo.png
    variables:
        - key: FIREFOX_DOMAIN
          type: DOMAIN
          name: Firefox Domain
          description: The domain used to access Firefox
    readme: |
        # Firefox
        Firefox Browser, also known as Mozilla Firefox or simply Firefox, is a free and open-source web browser developed by the Mozilla Foundation and its subsidiary, the Mozilla Corporation. Firefox uses the Gecko layout engine to render web pages, which implements current and anticipated web standards.

        Default username is `user` and password is in env `PASSWORD`.
    services:
        - name: Firefox
          icon: https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/firefox-logo.png
          template: PREBUILT_V2
          spec:
            source:
                image: linuxserver/firefox:latest
            ports:
                - id: web
                  port: 3000
                  type: HTTP
            volumes:
                - id: config
                  dir: /config
            instructions:
                - title: Username
                  content: ${CUSTOM_USER}
                - title: Password
                  content: ${PASSWORD}
            env:
                CUSTOM_USER:
                    default: user
                    expose: false
                PGID:
                    default: "1000"
                    expose: false
                PUID:
                    default: "1000"
                    expose: false
                TZ:
                    default: Asia/Shanghai
                    expose: false
          domainKey: FIREFOX_DOMAIN
localization:
    zh-CN:
        description: 在 Docker 中的 Firefox 浏览器
        readme: |
            # Firefox
            Firefox 浏览器是一个免费的开源网络浏览器，由 Mozilla 基金会和其子公司 Mozilla 公司开发。Firefox 使用 Gecko 布局引擎渲染网页，实现当前和预期的网络标准。

            默认用户名是 `user`，密码在环境变量 `PASSWORD` 中。
    zh-TW:
        description: 在 Docker 中的 Firefox 瀏覽器
        readme: |
            # Firefox
            Firefox 瀏覽器是一個免費的開源網絡瀏覽器，由 Mozilla 基金會和其子公司 Mozilla 公司開發。Firefox 使用 Gecko 布局引擎渲染網頁，實現當前和預期的網絡標準。

            預設使用者名稱是 `user`，密碼在環境變數 `PASSWORD` 中。
