Compare commits
2 Commits
847dd97780
...
00984b645b
Author | SHA1 | Date | |
---|---|---|---|
00984b645b | |||
a0eff55c47 |
@@ -3,14 +3,14 @@ services:
|
|||||||
portainer-agent:
|
portainer-agent:
|
||||||
# Basic container configuration
|
# Basic container configuration
|
||||||
container_name: portainer-agent
|
container_name: portainer-agent
|
||||||
image: docker.io/portainer/agent:latest
|
image: docker.io/portainer/agent:alpine
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
# System access configuration
|
# System access configuration
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock # Docker API access
|
- /var/run/docker.sock:/var/run/docker.sock # Docker API access
|
||||||
- /var/lib/docker/volumes:/var/lib/docker/volumes # Volume management
|
- /var/lib/docker/volumes:/var/lib/docker/volumes # Volume management
|
||||||
|
|
||||||
# Network port configuration
|
# Network port configuration
|
||||||
ports:
|
ports:
|
||||||
- 9001:9001 # Agent communication port
|
- 9001:9001 # Agent communication port
|
||||||
|
@@ -3,16 +3,24 @@ services:
|
|||||||
portainer:
|
portainer:
|
||||||
# Basic container configuration
|
# Basic container configuration
|
||||||
container_name: portainer
|
container_name: portainer
|
||||||
image: docker.io/portainer/portainer-ee:latest
|
image: docker.io/portainer/portainer-ee:alpine
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
# Persistent storage and system access configuration
|
# Persistent storage and system access configuration
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/data # Portainer configuration and database
|
- ./data:/data # Portainer configuration and database
|
||||||
- /etc/localtime:/etc/localtime:ro # Sync host timezone
|
- /etc/localtime:/etc/localtime:ro # Sync host timezone
|
||||||
- /var/run/docker.sock:/var/run/docker.sock # Docker API access
|
- /var/run/docker.sock:/var/run/docker.sock # Docker API access
|
||||||
|
|
||||||
# Network ports configuration
|
# Network ports configuration
|
||||||
ports:
|
ports:
|
||||||
- 8000:8000 # Edge agent communication port
|
- 8000:8000 # Edge agent communication port
|
||||||
- 9443:9443 # Web UI HTTPS port
|
- 9443:9443 # Web UI HTTPS port
|
||||||
|
|
||||||
|
# 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
|
||||||
|
Reference in New Issue
Block a user