Portainer
Portainer is a lightweight management UI that allows you to easily manage your Docker hosts, Swarm clusters, and Kubernetes environments through a web interface. It provides container management, image management, network and volume administration, stack deployment from Compose files, and environment monitoring. This stack deploys Portainer Community Edition with the Docker socket mounted for direct container management. Portainer supports multi-environment management (connect multiple Docker hosts, Swarm clusters, or Kubernetes clusters), role-based access control, Git-based stack deployments, and container console access. It also provides an Edge Agent feature for managing remote environments behind firewalls without VPN. After deployment, access the web UI on port 9443 (HTTPS) or 9000 (HTTP) to create your admin account and start managing your Docker environment.
Enthaltene Services
portainer
portainer/portainer-ce:latest
Umgebungsvariablen:
Generiertes YAML
# Generated by ComposeHub (composehub.dev)
name: portainer
services:
portainer:
image: portainer/portainer-ce:latest
restart: always
ports:
- 9443:9443
- 9000:9000
- 8000:8000
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer_data:/data
environment:
TZ: ${TZ:-UTC}
networks:
- portainer
healthcheck:
test:
- CMD-SHELL
- wget --no-verbose --tries=1 --spider --no-check-certificate https://localhost:9443 || exit 1
interval: 30s
timeout: 10s
retries: 3
start_period: 20s
deploy:
resources:
limits:
cpus: "1.00"
memory: 512M
reservations:
cpus: "0.10"
memory: 64M
labels:
com.composehub.description: Portainer CE — Docker and Kubernetes management UI
networks:
portainer:
driver: bridge
volumes:
portainer_data:
driver: local
Kurzinfo
- Services
- 1
- Netzwerke
- 1
- Volumes
- 1
Wann verwenden
Dieses Template ist ideal für die Einrichtung einer portainer Umgebung. Alle Services sind mit Healthchecks, Ressourcenlimits und sinnvollen Standardwerten vorkonfiguriert. Passen Sie die Umgebungsvariablen an, bevor Sie in Produktion gehen.
Tipps
- Ändern Sie alle Standardpasswörter vor dem Deployment
- Überprüfen Sie die Ressourcenlimits für Ihre Hardware
- Fügen Sie einen Reverse Proxy für HTTPS in Produktion hinzu
- Konfigurieren Sie Backup-Strategien für Daten-Volumes