name: nginxproxymanager
services:
  nginxproxymanager:
    image: jc21/nginx-proxy-manager:2.9.19
    deploy:
      resources:
        reservations:
          memory: "128M"
    network_mode: bridge
    ports:
      - target: 80
        published: "80"
        protocol: tcp
      - target: 443
        published: "443"
        protocol: tcp
      - target: 81
        published: "81"
        protocol: tcp
    restart: unless-stopped
    volumes:
      - type: bind
        source: /DATA/AppData/$AppID/data
        target: /data
      - type: bind
        source: /DATA/AppData/$AppID/etc/letsencrypt
        target: /etc/letsencrypt
    x-casaos:
      author: CasaOS Team
      category: Network
      container:
        index: /
        port_map: "81"
        ports:
          - container: "80"
            description:
              en_US: Nginx HTTP Port
              zh_CN: Nginx HTTP 端口

          - container: "443"
            description:
              en_US: Nginx HTTPS Port
              zh_CN: Nginx HTTPS 端口

          - container: "81"
            description:
              en_US: WebUI Port
              zh_CN: WebUI 端口

        volumes:
          - container: /data
            description:
              en_US: Nginx Proxy Manager data directory.
              zh_CN: Nginx 代理管理器数据目录。
          - container: /etc/letsencrypt
            description:
              en_US: Nginx Proxy Manager letsencrypt directory.
              zh_CN: Nginx 代理管理器 letsencrypt 目录。
      description:
        en_US: Nginx Proxy Manager is a simple, powerful tool to help you host multiple websites on a single server.
        zh_CN: Nginx 代理管理器是一个简单、强大的工具，可帮助您在单个服务器上托管多个网站。
      developer: Nginx Proxy Manager
      icon: https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/NginxProxyManager/icon.png
      screenshot_link:
        - https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/NginxProxyManager/screenshot-1.jpg
        - https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/NginxProxyManager/screenshot-2.jpg
        - https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/NginxProxyManager/screenshot-3.jpg
      tagline:
        en_US: Managing Nginx proxy hosts with a simple, powerful interface.
        zh_CN: 通过简单、强大的界面管理 Nginx 代理主机。
      thumbnail: https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/NginxProxyManager/thumbnail.png
      tips:
        before_install:
          en_US: |
            ⚠️ Warning!
            This is a technical app, please make sure you know what you are doing.
            Nginx Proxy Manager occupies ports 80 and 443 by default for built-in Nginx use. It occupies port 81 for the admin page.
            Please change the CasaOS WebUI port to a port other than 80/81/443. And pay attention to whether the ports conflict with other apps. Otherwise, it may cause your CasaOS to run abnormally.

            Default Administrator User

            | Username | Password |
            | -------- | -------- |
            | `admin@example.com` | `changeme` |
          zh_CN: |
            ⚠️ 警告！
            这是一个技术类应用，请确保你知道你在做什么。
            Nginx Proxy Manager 默认占用 80 和 443 端口给内置 Nginx 使用。占用 81 端口给管理页面。
            请将 CasaOS WebUI 端口改为非 80/81/443 的端口。并注意是否与其他应用冲突。否则可能导致你的 CasaOS 运行异常。

            默认管理员用户

            | 用户名 | 密码 |
            | -------- | -------- |
            | `admin@example.com` | `changeme` |
      title:
        en_US: Nginx Proxy Manager
        zh_CN: Nginx 代理管理器
x-casaos:
  architectures:
    - amd64
    - arm64
    - arm
  main_app: nginxproxymanager
