How to Install Monica on Your Synology NAS

How to Install Monica on Your Synology NAS

Monica is an open-source web application to organize and record your interactions with your loved ones. We call it a PRM, or Personal Relationship Management. Think of it as a CRM (a popular tool used by sales teams in the corporate world) for your friends or family. Monica allows people to keep track of everything that’s important about their friends and family. Like the activities with them. When you last called someone and what you talked about. It will help you remember the name and the age of their kids. It can also remind you to call someone you haven’t talked to in a while. In this step by step guide I will show you how to install Monica on your Synology NAS using Docker & Portainer.

Note: This guide works perfectly with the latest Monica 3.3.1 release.

  • STEP 1

Please Support My work by Making a Donation.

  • STEP 2

Install Docker via Synology “Package Center”.

Install Docker Synology DSM 7

  • STEP 3

Install Portainer using my step by step guide. If you already have Portainer installed on your Synology NAS, skip this STEP.

  • STEP 4

Go to File Station and open the docker folder. Inside the docker folder, create one new folder and name it monica. Follow the instructions in the image below.
Note: Be careful to enter only lowercase, not uppercase letters.

Monica Synology NAS Set up 1

  • STEP 5

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.

Monica Synology NAS Set up 2

  • STEP 6

In the Name field type in monica. Follow the instructions in the image below.

Note: Copy Paste the code below in the Portainer Stacks Web editor.

version: "3.4"

services:
  app:
    image: monica
    depends_on:
      - db
    ports:
      - 4166:80
    environment:
      - DB_HOST=db
      - DB_USERNAME=monica
      - DB_PASSWORD=secret
    volumes:
      - /volume1/docker/monica:/var/www/html/storage
    restart: always

  db:
    image: mysql
    environment:
      - MYSQL_RANDOM_ROOT_PASSWORD=true
      - MYSQL_DATABASE=monica
      - MYSQL_USER=monica
      - MYSQL_PASSWORD=secret
    volumes:
      - mysql:/var/lib/mysql
    restart: always

volumes:
  data:
    name: data
  mysql:
    name: mysql

Monica Synology NAS Set up new 3

  • STEP 7

Scroll down on the page until you see a button called 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.

Monica Synology NAS Set up new 4

  • STEP 8

If everything goes right, you will see this message at the top right of your screen: “Stack successfully deployed“.

Monica Synology NAS Set up 5

  • STEP 9

Go back to STEP 1 or you will deal with karma 🙂.

  • STEP 10

The installation process can take up to a few seconds/minutes. Please wait approximately 5 minutes or you will get a blank page if you try to connect too soon. Now open your browser and type in http://Synology-ip-address:4166 Follow the instructions in the image below. Add your own email, your First and Last name. Choose a password, Check the box to agree with the Terms of use, then click Register.

Monica Synology NAS Set up 6

  • STEP 11

Add your first contact. Follow the instructions in the image below.

Monica Synology NAS Set up 7

Enjoy Monica!

Monica Synology NAS Set up 8

Note: If you want to run the Monica container over HTTPS, check my guide on How to Run Docker Containers Over HTTPS.

Note: Can I run Docker on my Synology NAS? See the supported models.
Note: Find out how to update the Monica container with the latest image.
Note: How to Free Disk Space on Your NAS if You Run Docker.

This post was updated on Friday / October 15th, 2021 at 6:53 PM