Install Mealie Inside Docker Container on Linux

Install Mealie Inside Docker Container on Linux

Mealie is an open-source recipe management application designed to help users organize, share, and discover recipes. It allows you to create a digital cookbook, import recipes from the web, and manage meal plans.

This tutorial explains how to install Mealie inside a Docker container on Linux. Commands have been tested on Ubuntu.

Prepare environment

Make sure you have installed Docker in your system. If you are using Ubuntu, installation instructions can be found in the post.

Install Mealie

  • Host network

Run the following command to create a container for Mealie that uses host network:

docker run -d --name=mealie --restart=always --network=host \
    -v /opt/mealie/data:/app/data \
    ghcr.io/mealie-recipes/mealie
  • User-defined bridge network

User-defined bridge network can be used for listening on different port. By default, Mealie service is listening on port 9000. It can be changed with -p option.

docker network create app-net
docker run -d --name=mealie --restart=always --network=app-net \
    -p 8080:9000 \
    -v /opt/mealie/data:/app/data \
    ghcr.io/mealie-recipes/mealie

Testing Mealie

Open a web browser and go to http://<IP_ADDRESS>:9000, where <IP_ADDRESS> is the IP address of the system. Log in to the web application with the default username (admin) and password (MyPassword).

Mealie Inside Docker Container on Linux

Uninstall Mealie

To completely remove Mealie, remove its container:

docker rm --force mealie

Remove Mealie image:

docker rmi ghcr.io/mealie-recipes/mealie

You can also remove Mealie data:

sudo rm -rf /opt/mealie

If a user-defined bridge network was created, you can delete it as follows:

docker network rm app-net

Leave a Comment

Cancel reply

Your email address will not be published.