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.
शामिल सर्विसेज़
portainer
portainer/portainer-ce:latest
एनवायरनमेंट वेरिएबल्स:
जनरेटेड 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
त्वरित जानकारी
- सर्विसेज़
- 1
- नेटवर्क्स
- 1
- वॉल्यूम्स
- 1
कब उपयोग करें
यह टेम्पलेट एक portainer एनवायरनमेंट सेटअप के लिए आदर्श है। सभी सर्विसेज़ healthchecks, रिसोर्स लिमिट्स और उचित डिफ़ॉल्ट सेटिंग्स के साथ पहले से कॉन्फ़िगर्ड हैं। प्रोडक्शन में डिप्लॉय करने से पहले एनवायरनमेंट वेरिएबल्स कस्टमाइज़ करें।
सुझाव
- डिप्लॉय करने से पहले सभी डिफ़ॉल्ट पासवर्ड बदलें
- अपने हार्डवेयर के अनुसार रिसोर्स लिमिट्स की समीक्षा करें
- प्रोडक्शन HTTPS के लिए रिवर्स प्रॉक्सी जोड़ें
- डेटा वॉल्यूम्स के लिए बैकअप रणनीतियाँ कॉन्फ़िगर करें