Skip to content
EspiDev edited this page Feb 16, 2020 · 4 revisions

This tutorial shows you how to setup Redis and Mongo in Docker with Portainer.

Installation

  1. Install Docker.
    Windows users: you'll want to setup Docker in “Linux containers” mode.
  2. Install Portainer in a terminal:
    docker volume create portainer_data
    docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer
  3. Go to Portainer at localhost:9000. An electron app is also available on the AUR.
  4. Set a username and password. Don't forget this, you'll need it to login in the future.
  5. In Portainer, go to App Templates on the sidebar.
  6. In the list of app templates, click Mongo. A config dialog should pop up at the top of the page.
  7. Give the container a name if you'd like, and click Show advanced options. Under Port mapping, copy the port from container to host.
  8. Leave everything else as-is unless you know what you're doing, and deploy the container.
  9. Repeat 6-8 for Redis.
Clone this wiki locally