17 lines
496 B
YAML
17 lines
496 B
YAML
# Portainer Agent Configuration
|
|
services:
|
|
portainer-agent:
|
|
# Basic container configuration
|
|
container_name: portainer-agent
|
|
image: docker.io/portainer/agent:latest
|
|
restart: unless-stopped
|
|
|
|
# System access configuration
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock # Docker API access
|
|
- /var/lib/docker/volumes:/var/lib/docker/volumes # Volume management
|
|
|
|
# Network port configuration
|
|
ports:
|
|
- 9001:9001 # Agent communication port
|