Skip to main content

🚀 Installation

Homarr can be installed in many ways. For most users, Installation using Docker will be sufficient and the easiest.

Configuration

  • Environment variables can be used to configure your Homarr deployment.
Environment VariableDescriptionExamples
BASE_URLAllows you to change the base URL you use to access Homarrhomarr.example.com
TZ Allows you to set the time zoneAsia/Jerusalem
PASSWORDAllows you to set a password for Password protection-
PORTAllows you to change the default port Homarr uses to deploy1234

Installing

Docker is a free Software that isolates Homarr using containers. Using Docker, you can run Homarr on any supported plattform (including Windows and Raspberry Pi), easily.

Prerequisites

To install Homarr using Docker, simply run the following command.

docker run  \
--name homarr \
--restart unless-stopped \
-p 7575:7575 \
-v <your-path>/homarr/configs:/app/data/configs \
-v <your-path>/homarr/icons:/app/public/icons \
-d ghcr.io/ajnart/homarr:latest
note

Docker will mount the configuration files and icons to your host machine. Please make sure to replace <your-path> from the docker run command with your desired storage location. The path must be absolute.

Updating

To update Homarr, you must remove your container first. Make sure that you've mounted your data and that you have access to it, so your configuration doesn't get lost.

  1. Run docker rm homarr to remove the container.
  2. Pull the latest Homarr image docker pull ghcr.io/ajnart/homarr:latest.
  3. Re-run the command you used to install Homarr.

This process can get tideous, if you update frequently. Thus, we recommend the installation using docker-compose for more experienced users.


tip

Want to update all your containers automatically? Checkout Watchtower a service which will automatically update your containers on a set interval.

docker-compose.yml
version: "3"
services:
watchtower:
image: containrrr/watchtower:latest
container_name: watchtower
environment:
- TZ=Asia/Jerusalem
- WATCHTOWER_CLEANUP=true
- WATCHTOWER_SCHEDULE=0 0 12 * * *
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /etc/localtime:/etc/localtime
restart: unless-stopped

Building from source

caution

Installing Homarr from source is not recommended and only intended for developers and contributers, please use the Docker installation method instead.

  1. Clone the Repository using git clone https://github.com/ajnart/homarr.git
  2. Enter the created directory using cd homarr
  3. Install all dependencies using yarn install
  4. Build the source using yarn build
  5. Start the NextJS web server using yarn start
  6. Alternatively, use yarn dev to run a live development server.

Troubleshooting

Having trouble installing Homarr on your system? Check out our FAQ and Known Issues. If you are still running into issues, please contact us in our Discord server.