14 lines
443 B
YAML
14 lines
443 B
YAML
version: '3.8'
|
|
services:
|
|
portainer-agent:
|
|
image: portainer/agent:latest
|
|
container_name: portainer-agent
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- /var/lib/docker/volumes:/var/lib/docker/volumes
|
|
environment:
|
|
AGENT_CLUSTER_ADDR: 192.168.1.81 # Replace with the actual IP address
|
|
AGENT_PORT: 9001
|
|
ports:
|
|
- "9001:9001" # Port for agent communication
|
|
restart: always |