← Go back
Installing Coolify on Raspberry Pi as a Home Server
- Date
- John Doe
Hardware Preparation
- Raspberry Pi: Ensure your Raspberry Pi is correctly configured and connected to the network.
- Power Adapter: Provide a stable power supply for the Raspberry Pi.
- Storage Device: At least one microSD card is required to install the operating system.
- Network Connection: Ensure the Raspberry Pi can connect to the internet via Ethernet or Wi-Fi.
Software Preparation
- Operating System: Choose a Linux distribution suitable for Raspberry Pi, such as Raspberry Pi OS or Ubuntu Server for Raspberry Pi.
- Docker: Ensure Docker and Docker Compose are installed in the operating system.
Step-by-Step Guide
Install the Operating System
- Download the Linux distribution image suitable for Raspberry Pi, such as Raspberry Pi OS or Ubuntu Server for Raspberry Pi.
- Use Etcher or another image writing tool to write the image to a microSD card.
- Insert the microSD card into the Raspberry Pi, boot it, and follow the prompts to install the operating system.
Install Docker and Docker Compose
- Open the terminal and run the following commands to install Docker:
curl -fsSL https://get.docker.com -o get-docker.sh sudo sh get-docker.sh
- Install Docker Compose:
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose
Download Coolify's Docker Compose File
- Create a directory to store Coolify's configuration files, for example:
mkdir ~/coolify && cd ~/coolify
- Download Coolify's Docker Compose file:
curl -o docker-compose.yml https://raw.githubusercontent.com/coollabsio/coolify/main/docker-compose.yml
Configure Environment Variables
- Create a .env file and add necessary environment variables:
touch .env nano .env
- Add the following content to the .env file:
COOLIFY_APP_ID=your-app-id COOLIFY_SECRET_KEY=your-secret-key COOLIFY_DATABASE_URL=sqlite:////data/coolify.db COOLIFY_HOST=http://your-server-ip:3000
Start Coolify
- In the directory containing the docker-compose.yml and .env files, run the following command to start Coolify:
docker-compose up -d
Access Coolify
- Once started, you can access Coolify's web interface via a browser at
http://your-server-ip:3000
.