跳到主要内容

Homarr

官方网站

Homarr官网链接

Docker方式安装

compose文件

提供一个compose.yml示例,展示如何快速部署Homarr。

version: '3'
services:
homarr:
image: ghcr.io/ajnart/homarr:latest
container_name: homarr
restart: unless-stopped
ports:
- 7575:7575
volumes:
- ./homarr/configs:/app/data/configs
- ./homarr/icons:/app/public/icons

env文件

说明.env文件的作用及常用配置项。

# 示例.env文件
NODE_ENV=production
TZ=Asia/Shanghai

启动

说明如何启动容器。

docker compose up -d

配置文件

说明配置文件位置及常见配置项。

  • 配置文件路径:./homarr/configs
  • 图标文件路径:./homarr/icons

备注

  • 默认访问地址:http://localhost:7575
  • 推荐使用反向代理(如Nginx、Traefik)进行域名绑定和HTTPS配置。