How to Install Mealie on Alpine Linux Latest
Mealie is a self-hosted recipe manager and planner written in Python. This tutorial will guide you through the installation process of Mealie on Alpine Linux Latest.
Prerequisites
- A virtual machine or dedicated server running Alpine Linux Latest
- A non-root user with sudo privileges
Step 1: Update your system
Ensure your system is up to date by running the following command:
sudo apk update && sudo apk upgrade
Step 2: Installing Dependencies
Install the required dependencies for Mealie by running the following command:
sudo apk add python3 python3-dev py3-pip postgresql-dev build-base libxml2-dev libxslt-dev jpeg-dev zlib-dev
Step 3: Install Mealie
- Clone the Mealie source code from the official GitHub repository:
git clone https://github.com/hay-kot/mealie.git
- Navigate to the cloned directory:
cd mealie/
- Use pip to install Mealie:
sudo pip3 install -r requirements.txt
- Create a new PostgreSQL database and user for Mealie:
sudo -u postgres createdb mealie
sudo -u postgres createuser -d -P mealie
- Set the required environment variables in
.envfile for Mealie:
DATABASE_URL=postgres://mealie:<your-db-password>@localhost/mealie
SECRET_KEY=<your-secret-key>
- Run the following command to run database migrations:
python3 manage.py migrate
- Run the following command to create an admin user:
python3 manage.py createsuperuser
- Finally, start the Mealie server:
python3 manage.py runserver 0.0.0.0:8000
Step 4: Accessing Mealie
Open up your web browser and navigate to http://your-server-ip:8000/admin to access Mealie. You should be able to login with the admin user you created in step 3.
Congratulations! You have successfully installed Mealie on Alpine Linux Latest.