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.
Servicios Incluidos
portainer
portainer/portainer-ce:latest
Variables de Entorno:
YAML Generado
# 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
Información Rápida
- Servicios
- 1
- Redes
- 1
- Volúmenes
- 1
Cuándo Usar
Esta plantilla es ideal para configurar un entorno de portainer Todos los servicios vienen preconfigurados con healthchecks, límites de recursos y valores por defecto sensatos. Personaliza las variables de entorno antes de desplegar en producción.
Consejos
- Cambia todas las contraseñas por defecto antes de desplegar
- Revisa los límites de recursos para tu hardware
- Añade un proxy inverso para HTTPS en producción
- Configura estrategias de respaldo para los volúmenes de datos