Skip to content

Portainer

portainer-logo

To quote Portainer themselves:

Quote

Portainer is the most versatile container management software that simplifies your secure adoption of containers with remarkable speed.

I use portainer (and portainer agent) to give me a quick and easy cursory overview of all of my containers and their status.

portainer-screenshot

My main Portainer instance is installed on my primary server, Titan, as part of a stack with Traefik

I install portainer agent on my other server that are running docker and connect them using the main portainer instance on titan.

docker-compose

networks:
  phobos-network:
    external: true

services:
  agent:
    ports:
      - 9001:9001
    container_name: portainer_agent
    networks:
      phobos-network:
        ipv4_address: "172.20.0.2"
    restart: unless-stopped
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /var/lib/docker/volumes:/var/lib/docker/volumes
    image: portainer/agent:lts
networks:
  tethys-network
    external: true

services:
  agent:
    ports:
      - 9001:9001
    container_name: portainer_agent
    networks:
      tethys-network:
        ipv4_address: "172.21.0.2"
    restart: unless-stopped
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /var/lib/docker/volumes:/var/lib/docker/volumes
    image: portainer/agent:lts
networks:
  pihole1-network:
    external: true

services:
  agent:
    ports:
      - 9001:9001
    container_name: portainer_agent
    networks:
      pihole1-network:
        ipv4_address: "172.22.0.2"
    restart: unless-stopped
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /var/lib/docker/volumes:/var/lib/docker/volumes
    image: portainer/agent:lts