Skip to content

Portainer

In this section we will see how deploy Teemii using a container management tool: Portainer.

What is Portainer?

Portainer is a user-friendly container management tool that allows you to easily deploy and manage Docker containers. In this tutorial, we'll walk you through the steps to install Teemii using Portainer.

Prerequisites (Portainer)

Before you begin, ensure that you have the following prerequisites:

  • A system with Docker and Portainer installed.
  • The Teemii repository cloned to your local machine. You can clone it from here.

Step 1: Start Portainer

  1. Launch Portainer in your web browser by navigating to http://localhost:9000 (or the URL where you have Portainer installed).

  2. If this is your first time using Portainer, set up your Portainer admin user account as prompted.

Step 2: Create a Docker Volume

Teemii uses a volume to store manga collections and data. You can create a Docker volume for Teemii data using Portainer or via the Docker CLI. If you prefer to use Portainer, follow these steps:

  1. Click on "Volumes" in the Portainer sidebar.

  2. Click the "+ Add Volume" button.

  3. Enter a name for the volume, e.g., teemii-data, and configure any other options as needed. Click "Create the volume."

step 3: Create a Network for Teemii

  1. Click on "Networks" in the Portainer sidebar.

  2. Click the "+ Add network" button.

  3. In the "Name" field, enter teemii-network.

  4. Configure any additional network options if necessary. Usually, the default settings are suitable for an internal network.

  5. Click on "Create the network".

Step 4: Deploy the Teemii Frontend

Now, let's deploy the Teemii frontend using Portainer:

  1. In Portainer, click on "Containers" in the sidebar.

  2. Click the "+ Add Container" button.

  3. Configure the container settings as follows:

  4. Name: teemii-frontend (1)

    1. ⚠ The name teemii-frontend is important for communication between containers! Don't change it.
  5. Image: dokkaner/teemii:frontend-latest

  6. Port mapping: Map port 80 of the container to a port on your host system (e.g., 8080).

  7. Click the "Deploy the container" button.

Step 4: Deploy the Teemii Backend

Next, let's deploy the Teemii backend using Portainer:

  1. Click on "Containers" in the sidebar.

  2. Click the "+ Add Container" button.

  3. Configure the container settings as follows:

  4. Name: teemii-backend (1)

    1. ⚠ The name teemii-backend is important for communication between containers! Don't change it.
  5. Image: dokkaner/teemii:teemii-backend

  6. Network: Connect this container to the same network as the Teemii frontend container.
  7. Volumes: If you created a Teemii data volume, map it to /data in the container. This is where manga collections and data will be stored.

  8. Click the "Deploy the container" button.

Step 5: Access Teemii

Once both the Teemii frontend and backend containers are running, you can access Teemii in your web browser by navigating to:

 http://[host]:8080