Skip to content

Portainer

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 (with portainer agent) to give me a quick and easy cursory overview of all of my containers and their status.

Portainer is installed and running on both servers where there are many containers running.

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

I install portainer on my other server using the below compose file which installs both Portainer and Portainer Agent

Portainer & Portainer Agent

networks:
  default:
    name: cuthbert-network
    external: true

services:
  portainer-ee:
    ports:
      - 8000:8000
      - 9443:9443
    container_name: portainer
    networks:
      default:
        ipv4_address: "172.22.0.2"
    restart: always
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - portainer_data:/data
    image: portainer/portainer-ee:2.19.5
  agent:
    ports:
      - 9001:9001
    container_name: portainer_agent
    networks:
      default:
        ipv4_address: "172.22.0.3"
    restart: always
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /var/lib/docker/volumes:/var/lib/docker/volumes
    image: portainer/agent:2.19.5

volumes:
  portainer_data:
    external: true
    name: portainer_data

Dynamic File

Even though I can reach the portainer environment for Cuthbert through TiTAN, I have still setup its own individual domain name.

This requires the setup of a dynamic file which is detailed here