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.
Included Services
portainer
portainer/portainer-ce:latest
Environment Variables:
Generated 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
Quick Info
- Services
- 1
- Networks
- 1
- Volumes
- 1
When to Use
This template is ideal for setting up a portainer environment. All services are pre-configured with healthchecks, resource limits, and sensible defaults. Customize environment variables before deploying to production.
Tips
- Change all default passwords before deploying
- Review resource limits for your hardware
- Add a reverse proxy for production HTTPS
- Configure backup strategies for data volumes