How to Install Mealie on Ubuntu Server Latest
Mealie is an open source recipe organizer and meal planner that helps you plan and organize your meals. In this tutorial, we will learn how to install Mealie on the latest version of Ubuntu Server.
Preconditions
Before we begin, make sure you have the following:
- An Ubuntu Server that is up to date and has root access.
- Access to a terminal window on the Ubuntu Server.
Now that we have our preconditions sorted, we can start with the installation process:
Step 1: Install Docker
Mealie is built on Docker, so the first thing we need to do is to install Docker. Enter the following commands:
sudo apt-get update
sudo apt-get install -y docker.io
This will update your Ubuntu Server and install the Docker engine.
Step 2: Configure Docker
Now that Docker is installed, we need to configure it to run Mealie. Run the following command to create a directory for Mealie's data:
sudo mkdir /opt/mealie-data
Next, create a Docker network by entering the command:
sudo docker network create mealie-net
Step 3: Download the Mealie Docker Image
Now, we need to download the Mealie Docker image. Enter the following command:
sudo docker pull haykot/mealie:latest
This will download the latest version of Mealie's Docker image from the Docker Hub.
Step 4: Start Mealie
Finally, it's time to start Mealie. Run the following command:
sudo docker run \
-d \
--name=mealie \
--restart=always \
-v /opt/mealie-data:/app/data \
-p 80:9000 \
--network=mealie-net \
haykot/mealie:latest
This will start the Mealie Docker container and map port 80 of your Ubuntu Server to the container's port 9000. You can access Mealie by opening your web browser and visiting http://[server-ip-address].
Conclusion
Congratulations! You have successfully installed and configured Mealie on your Ubuntu Server. Now you can start organizing and planning your meals.
Note: If you want to update Mealie to a new version, just pull the latest Docker image and restart the container with the updated image.