Skip to main content

Portainer per Docker Compose bereitstellen

Portainer Agent

services:
  app:
    container_name: portainer-agent #Name kann beliebig angepasst werden
    image: portainer/agent:lts #LTS Version
    ports:
      - "9001:9001" 
    volumes:
      # Mount the host's Docker socket into the container
      - /var/run/docker.sock:/var/run/docker.sock
      # Mount the host's Docker volumes into the container
      - /var/lib/docker/volumes:/var/lib/docker/volumes
    restart: always
    network_mode: bridge
    deploy:
      resources:
        limits:
          cpus: '0.5'
          memory: 512M