Docker compose for Portainer

Portainer Community Edition is a lightweight service delivery platform for containerized applications that can be used to manage Docker, Swarm, Kubernetes and ACI environments. It is designed to be as simple to deploy as it is to use. The application allows you to manage all your orchestrator resources (containers, images, volumes, networks and more) through a ‘smart’ GUI and/or an extensive API.


Portainer consists of a single container that can run on any cluster. It can be deployed as a Linux container or a Windows native container.


docker-compose.yml file:

version: "3"
services:
  portainer:
    image: portainer/portainer-ce:latest
    ports:
      - 9443:9443
    volumes:
      - ./data:/data
      - /var/run/docker.sock:/var/run/docker.sock
    restart: unless-stopped


Source: https://github.com/gregorgodler/portainer, https://hub.docker.com/r/portainer/portainer-ce