2025-07-14 12:48:15 +05:30
|
|
|
# Portainer Container Management Configuration
|
2025-06-18 21:52:21 +05:30
|
|
|
services:
|
|
|
|
|
portainer:
|
2025-07-14 12:48:15 +05:30
|
|
|
# Basic container configuration
|
2025-06-18 21:52:21 +05:30
|
|
|
container_name: portainer
|
2025-07-16 23:43:12 +05:30
|
|
|
image: docker.io/portainer/portainer-ee:alpine
|
2025-07-13 18:35:45 +05:30
|
|
|
restart: unless-stopped
|
2025-07-16 23:43:12 +05:30
|
|
|
|
2025-07-14 12:48:15 +05:30
|
|
|
# Persistent storage and system access configuration
|
2025-06-18 21:52:21 +05:30
|
|
|
volumes:
|
2025-07-14 12:48:15 +05:30
|
|
|
- ./data:/data # Portainer configuration and database
|
|
|
|
|
- /etc/localtime:/etc/localtime:ro # Sync host timezone
|
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock # Docker API access
|
2025-07-16 23:43:12 +05:30
|
|
|
|
2025-07-14 12:48:15 +05:30
|
|
|
# Network ports configuration
|
2025-06-18 21:52:21 +05:30
|
|
|
ports:
|
2025-07-14 12:48:15 +05:30
|
|
|
- 8000:8000 # Edge agent communication port
|
|
|
|
|
- 9443:9443 # Web UI HTTPS port
|
2025-07-16 23:43:12 +05:30
|
|
|
|
|
|
|
|
# Health check configuration
|
|
|
|
|
healthcheck:
|
|
|
|
|
test: "wget --no-verbose --tries=1 --spider http://localhost:9000/api/system/status || exit 1"
|
|
|
|
|
start_period: 10s # Initial delay before checks
|
|
|
|
|
interval: 10s # Check interval
|
|
|
|
|
timeout: 5s # Check timeout
|
|
|
|
|
retries: 3 # Allowed retries
|