2025-07-14 12:48:15 +05:30
|
|
|
# Portainer Agent Configuration
|
2025-06-18 21:52:21 +05:30
|
|
|
services:
|
|
|
|
|
portainer-agent:
|
2025-07-14 12:48:15 +05:30
|
|
|
# Basic container configuration
|
2025-06-18 21:52:21 +05:30
|
|
|
container_name: portainer-agent
|
2025-07-16 23:42:51 +05:30
|
|
|
image: docker.io/portainer/agent:alpine
|
2025-07-13 18:35:45 +05:30
|
|
|
restart: unless-stopped
|
2025-07-14 12:48:15 +05:30
|
|
|
|
|
|
|
|
# System access configuration
|
2025-06-18 21:52:21 +05:30
|
|
|
volumes:
|
2025-07-14 12:48:15 +05:30
|
|
|
- /var/run/docker.sock:/var/run/docker.sock # Docker API access
|
|
|
|
|
- /var/lib/docker/volumes:/var/lib/docker/volumes # Volume management
|
2025-07-16 23:42:51 +05:30
|
|
|
|
2025-07-14 12:48:15 +05:30
|
|
|
# Network port configuration
|
2025-06-18 21:52:21 +05:30
|
|
|
ports:
|
2025-07-14 12:48:15 +05:30
|
|
|
- 9001:9001 # Agent communication port
|