Do you remember my article on how to install Mealie on your Synology NAS? Today I will show you how to install the latest Mealie v1-v2 version on your Synology NAS. Mealie is a self hosted recipe manager and meal planner with a RestAPI backend and a reactive frontend application built in Vue for a pleasant user experience for the whole family. Easily add recipes into your database by providing the URL and Mealie will automatically import the relevant data or add a family recipe with the simple and user-friendly UI editor. Use Mealie this Thanksgiving, Christmas, for New Year or birthday celebrations to help you plan your menu and have all the recipes youâve been eyeing and itching to try all in the same place. Mealie is an alternative to Tandoor Recipes.
STEP 1
Please Support My work by Making a Donation.
STEP 2
Install Portainer using my step by step guide. If you already have Portainer installed on your Synology NAS, skip this STEP. Attention: Make sure you have installed the latest Portainer version.
STEP 3
Go to File Station and open the docker folder. Inside the docker folder, create one new folder and name it mealie. Follow the instructions in the image below.
Note: Be careful to enter only lowercase, not uppercase letters.
STEP 4
Now create two new folders inside the mealie folder that you created at STEP 3 and name them data and db. Follow the instructions in the image below.
Note: Be careful to enter only lowercase, not uppercase letters.
STEP 5
Follow my step by step guide on how to activate SMTP for your Gmail account. This step is mandatory. Note: If you don’t want to use the easiest way for SMTP with Google and you already have SMTP details from your own Mail Server, you can just skip this STEP and use your personalized email SMTP details instead.
STEP 6
Log into Portainer using your username and password. On the left sidebar in Portainer, click on Stacks then + Add stack. Follow the instructions in the image below.
STEP 7
In the Name field type in mealie. Follow the instructions in the image below.
services: db: image: postgres:16 container_name: Mealie-DB hostname: mealie-db mem_limit: 1g cpu_shares: 768 security_opt: - no-new-privileges:true healthcheck: test: ["CMD", "pg_isready", "-q", "-d", "mealie", "-U", "mealieuser"] timeout: 45s interval: 10s retries: 10 volumes: - /volume1/docker/mealie/db:/var/lib/postgresql/data:rw environment: POSTGRES_DB: mealie POSTGRES_USER: mealieuser POSTGRES_PASSWORD: mealiepass restart: on-failure:5 mealie: image: ghcr.io/mealie-recipes/mealie:latest container_name: Mealie hostname: mealie mem_limit: 4g cpu_shares: 1024 security_opt: - no-new-privileges:true read_only: false ports: - 9925:9000 volumes: - /volume1/docker/mealie/data:/app/data/:rw environment: TZ: Europe/Bucharest PUID: 1026 PGID: 100 MAX_WORKERS: 1 WEB_CONCURRENCY: 1 ALLOW_SIGNUP: true #or false BASE_URL: http://192.168.1.18 #or https://mealie.yourname.synology.me DB_ENGINE: postgres POSTGRES_USER: mealieuser POSTGRES_PASSWORD: mealiepass POSTGRES_SERVER: mealie-db POSTGRES_PORT: 5432 POSTGRES_DB: mealie SMTP_HOST: smtp.gmail.com SMTP_PORT: 587 SMTP_FROM_NAME: Mealie SMTP_AUTH_STRATEGY: TLS # Options: TLS, SSL, NONE SMTP_FROM_EMAIL: Your-own-gmail-address SMTP_USER: Your-own-gmail-address SMTP_PASSWORD: Your-own-app-password restart: on-failure:5 depends_on: db: condition: service_healthy
Note: Before you paste the code above in the Web editor area below, change the value for TZ. (Select your current Time Zone from this list.)
Note: Before you paste the code above in the Run command area below, change the value numbers for PUID and PGID with your own values. (Follow my step by step guide on how to do this.)
Note: Before you paste the code above in the Web editor area below, change the value for BASE_URL and add your own Synology Local NAS IP. http://192.168.1.18 is my own Synology Local NAS IP. You should add your own Synology Local NAS IP.
Note: Before you paste the code above in the Web editor area below, change the value for SMTP_FROM_EMAILÂ and type in your own Gmail address. STEP 5.
Note: Before you paste the code above in the Web editor area below, change the value for SMTP_USERÂ and type in your own Gmail address. STEP 5.
Note: Before you paste the code above in the Web editor area below, change the value for SMTP_PASSWORDÂ and type in your own Gmail app password. STEP 5.
STEP 8
Scroll down on the page until you see a button named Deploy the stack. Click on it. Follow the instructions in the image below. The installation process can take up to a few minutes. It will depend on your Internet speed connection.
STEP 9
If everything goes right, you will see the following message at the top right of your screen: âSuccess Stack successfully deployedâ.
STEP 10
Go back to STEP 1 or you will deal with karma đ
STEP 11
The installation process can take up to a few seconds/minutes. It will depend on your Internet speed connection. Now open your browser and type in http://Synology-ip-address:9925 Add the default Email address and Password, then click Sign In. You can change them later. Follow the instructions in the image below.
STEP 12
At the top right of the page click the + CREATE then import a recipe by URL button to import recipes from the world wide web. Follow the instructions in the image below.
STEP 13
Import a recipe in Mealie by pasting an external URL for a recipe of your choice then clicking + CREATE. Follow the instructions in the image below.
STEP 14
Your Mealie dashboard at a glance!
STEP 15
Note: If you want to run the Mealie container over HTTPS, check my guide on How to Run Docker Containers Over HTTPS. In order to make Mealie work via HTTPS, it’s mandatory to activate WebSocket. â ď¸Warning: Also remember to change the BASE_URL environment variable at STEP 7 from BASE_URL=http://192.168.1.18 to BASE_URL=https://mealie.yourname.synology.me
STEP 16
If you want to disable user registration in Mealie, just change the following line in the compose at STEP 7:
ALLOW_SIGNUP: true
with the following one:
ALLOW_SIGNUP: false
Click update the stack to update the settings. From this point on, the register button will disappear from the Mealie homepage.
Enjoy Mealie!
If you encounter issues by using this container, make sure to check out the Common Docker issues article.
Note: Can I run Docker on my Synology NAS? See the supported models.
Note: How to Back Up Docker Containers on your Synology NAS.
Note: Find out how to update the Mealie container with the latest image.
Note: How to Free Disk Space on Your NAS if You Run Docker.
Note: How to Schedule Start & Stop For Docker Containers.
Note: How to Activate Email Notifications.
Note: How to Add Access Control Profile on Your NAS.
Note: How to Change Docker Containers Restart Policy.
Note: How to Use Docker Containers With VPN.
Note: Convert Docker Run Into Docker Compose.
Note: How to Clean Docker.
Note: How to Clean Docker Automatically.
Note: Best Practices When Using Docker and DDNS.
Note: Some Docker Containers Need WebSocket.
Note: Find out the Best NAS Models For Docker.
Note: Activate Gmail SMTP For Docker Containers.
This post was updated on Thursday / November 28th, 2024 at 2:11 PM