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.
Requirements
Section titled “Requirements”- 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.
Installation
Section titled “Installation”- Server Hub → your server → Templates → Docker with Portainer → Install.
- Optionally enter a domain and an email address for the certificate.
- Start installation. After about 4 minutes, you get the address, the user
adminand a password.
Afterwards
Section titled “Afterwards”- Log in and change the password under My account.
- Under Stacks, you start your own applications from a docker-compose file.
Files and commands
Section titled “Files and commands”| 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) |