Using Application Templates in Portainer 2.0

0
11

In my previous post, I showed how to upgrade from Portainer 1.24.1 to Portainer 2.0. The problem that a lot of people have with 2.0 is that they’ve removed the ability to use application templates natively. In this post I’m going to show a few ways to continue to use application templates until 2.0 is able to use them again.

The first method we’re going to look at is using a Docker application called Taisun. It’s super easy to setup and it gives up dozens of applications that we can install with just a couple of clicks.

Taisun

In order to install Taisun, just copy the following code into a new Portainer stack:

version: "2"
services:
taisun:
image: linuxserver/taisun
container_name: taisun
network_mode: bridge
volumes:
– /var/run/docker.sock:/var/run/docker.sock
ports:
– 3000:3000
restart: unless-stopped
view raw
gistfile1.txt
hosted with ❤ by GitHub

If you already have something running on port 3000, then change it to something else like this:

 ports: - 3001:3000

Once you have that, you can click “Deploy the Container” and wait for it to deploy. Then go to http://your-server-address:3000 and you should see Taisun up and running. From there, y0u can install any of the available applications.

Yacht

Yacht is currently in pre-alpha stage, so be aware of that. I don’t suggest using it on a production server as of the time of writing this blog post (Sept 1, 2020). While I don’t currently recommend using it on a production server, I’m sharing it so you can follow the progress of the development of the system.

Ultimately, Yacht is similar to Taisun in that it allows you to install applications from a single dashboard. What Yacht does better, one of the things anyway, is that it allows you to add as many .json templates to the system as you like so you can grow your application library any way you see fit.

Yacht can be installed quickly and easily by running 2 commands in an SSH windows:

docker volume create yacht docker run -d -p 8000:8000 -v /var/run/docker.sock:/var/run/docker.sock -v yacht:/config selfhostedpro/yacht:vue

The developer of Yacht asked me to make sure you use the :vue tag in the docker run command as shown above as it is the most stable currently.

If you’re installing this to run alongside Portainer, you’ll most likely need to change port 8000 to something else to keep it from conflicting with Portainer.

Once you’ve run both commands, you should be able to go to http://your-server-address:8001 (or whatever you set the port to) and login. Per the Yacht Docker page:

The default login is admin@yacht.local and pass you should change this immediately by clicking on admin in the top right and then “User” then select “Change Password” in the top menu. You can also change your username using this field.

When you’ve got that sorted, you can go to the sidebar, add a new .json template and then start installing applications.

I’m deliberately leaving the process of doing that vague as I don’t want to get too far ahead of the developers, so be sure to check their Docker page to follow their guidelines for installing.

Join the Yacht Discord Server: https://discord.gg/srRUF5S

Downgrading to 1.24.x

The other option you have at the time of writing this post is to simply go back to using Portainer version 1.24.x. (x represents whatever the current version of 1.24 happens to be)

You can do this by running a few simple commands.

To remove Portainer 2.0, type the following commands into your server’s SSH window:

docker stop portainer
docker rm portainer

Once you’ve removed Portainer, you can run the following commands to get version 1.24.x running:

docker volume create portainer_data
docker run -d -p 9000:9000 -p 8000:8000 --name portainer --restart always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer

That’s all there is to downgrading to Portainer 1.24.x. Now you’ve got a few options on how to continue to use application templates!

OpenMediaVault Tutorials

If you’re interested in other tutorials for your home server, check here: https://dbtechreviews.com/category/openmediavault/

/=========================================/

Like what I do? Want to be generous and help support my channel?

Here are some ways to support:

Patreon: https://dbte.ch/patreon

Ko-fi: https://dbte.ch/kofi

/=========================================/

Remember to leave a like on this video and subscribe if you want to see more!

/=========================================/

Follow Me:

Twitter: https://dbte.ch/tw

Facebook: https://dbte.ch/fb

Subscribe: https://dbte.ch/ytsub

The post Using Application Templates in Portainer 2.0 appeared first on DB Tech.

Sumber: DB Tech

LEAVE A REPLY

Please enter your comment!
Please enter your name here