Self-host Portainer with Levelrail

Verified

A web UI for managing containers, images, volumes, and networks.

  • AuthorportainerVerified by Levelrail
  • LicenceZlib
  • Memory256 MiB
  • Archarm64
  • Services1

How to self-host Portainer

  1. Pull the images

    One image is pulled on your server.

    Show images
    • portainer/portainer-ce:2.21.0
  2. Create the app

    One service starts in a single Compose app, with 1 named volume mount for your data, on port 9443.

  3. Fill in the secrets

    You do not have to fill in anything.

  4. Open it

    Without a domain the app gets an sslip.io address; add --domain SERVICE=HOST to use your own.

Portainer requirements

Memory
About 256 MiB
Architectures
amd64 image published, arm64 tested
Ports
9443
Domain
Optional, an sslip.io address is used without one
Settings
none to fill in
License
Zlib, permissive license
  • Verified. Verified on arm64 with image tag 2.21.0. Our CI ran this exact image version and it answered on its health path. Evidence
  • Host ports. It publishes port 9443 on the host, so open them in the VPS firewall only if you want that.

Install Levelrail first

On a server with Levelrail running, run the command above, or open the dashboard: Apps, New app, Browse templates, then Portainer. New to Levelrail? Install it on a fresh VPS first.

docker pull ghcr.io/glincker/levelrail:latest

Then levelrail-cli login --device. See Getting started and the Portainer docs page.

Deploy Portainer your way

Every format below deploys the same pinned images. Pick the one that fits how you work.

Deploy Portainer from the CLI

levelrail-cli templates deploy portainer --name my-portainer

Deploy Portainer with the API

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/portainer/deploy

Portainer configuration

Portainer services

ServiceImagePortsVolumes
portainer portainer/portainer-ce:2.21.0 9443 portainer_data -> /data

Portainer environment variables

The catalog lists no environment variables for this template.

Ports and volumes

Ports
9443
Volumes
1 named mount: portainer_data -> /data

Portainer FAQ

How much memory does Portainer need?

The catalog lists about 256 MiB of memory for Portainer.

Does Portainer run on arm64?

For Portainer, arm64 is tested; amd64 is image published.

What licence is Portainer under?

Portainer is licensed under Zlib, which is permissive, with few conditions on reuse.

Does Portainer need configuration before it starts?

No. The template fills in its own defaults.

Which ports does Portainer use?

Portainer listens on port 9443 inside the stack.

Where does Portainer keep its data?

In a named volume: portainer_data mounted at /data.

Can I deploy Portainer on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list has an entry with the id portainer for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image portainer/portainer-ce:2.21.0 is what you deploy there.

levelrail-cli templates deploy portainer --name my-portainer