Aisle Monitoring

Portainer

Manage Docker with a graphical interface.

Add to my serverdocker-compose generator (French)Compare alternatives (French)Official documentation

What is it for?

Portainer lets you start, stop, update and inspect your containers from a web interface, without the command line. Handy when starting out with Docker.

Who is it for?

Beginners who would rather click than type commands.

Good to know

Portainer fully controls Docker, and therefore the server: use a very strong password and two-factor authentication.

After installing

  1. Create the administrator account within 5 minutes of starting (otherwise, restart the container).

The docker-compose

Example behind Traefik. To adapt it (Nginx Proxy Manager, local port…) with a line-by-line explanation, use the generator (in French).

# docker-compose.yml : Portainer
services:
  portainer:
    image: portainer/portainer-ce:lts
    container_name: portainer
    restart: unless-stopped
    security_opt:
      - no-new-privileges:true
    environment:
      TZ: Europe/Paris
    volumes:
      - ./data:/data
      - /var/run/docker.sock:/var/run/docker.sock
    networks:
      - traefik
    labels:
      - traefik.enable=true
      - traefik.http.routers.portainer.rule=Host(`portainer.mydomain.com`)
      - traefik.http.routers.portainer.entrypoints=websecure
      - traefik.http.routers.portainer.tls.certresolver=letsencrypt
      - traefik.http.services.portainer.loadbalancer.server.port=9000

networks:
  traefik:
    external: true