Skip to content

06Templates (apps on your server)

Docker with Portainer (template)

Set up Docker, Compose and Portainer on your VPS using a template, with or without a domain. Helps with “docker: permission denied” and Portainer access.

In short

The template installs Docker Engine with Compose from the official package source (key with a fixed fingerprint) and Portainer CE as the interface. The template creates the admin account. Without a domain, you reach Portainer at https://IP:9443; with a domain, through a regular SSL certificate.

  • at least 768 MB RAM, 5 GB free storage
  • If Docker with Compose is already installed, it’s reused. Docker from the system’s package sources (docker.io) without Compose has to be removed first.
  1. Server Hub → your server → Templates → Docker with Portainer → Install.
  2. Optionally enter a domain and an email address for the certificate.
  3. Start installation. After about 4 minutes, you get the address, the user admin and a password.
  • Log in and change the password under My account.
  • Under Stacks, you start your own applications from a docker-compose file.
What Where
Portainer data /opt/nh-apps/portainer/data
Restart docker restart nh-portainer
Docker logs limited to 3 × 10 MB per container (/etc/docker/daemon.json, only on a fresh install)