-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
EspiDev edited this page Feb 16, 2020
·
4 revisions
This tutorial shows you how to setup Redis and Mongo in Docker with Portainer.
- Install Docker.
Windows users: you'll want to setup Docker in “Linux containers” mode. - 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
- Go to Portainer at localhost:9000. An electron app is also available on the AUR.
- Set a username and password. Don't forget this, you'll need it to login in the future.
- In Portainer, go to
App Templates
on the sidebar. - In the list of app templates, click Mongo. A config dialog should pop up at the top of the page.
- Give the container a name if you'd like, and click
Show advanced options
. UnderPort mapping
, copy the port fromcontainer
tohost
. - Leave everything else as-is unless you know what you're doing, and deploy the container.
- Repeat 6-8 for Redis.