Table of Contents
docker-compose.yml
version: '3'
services:
agent:
image: portainer/agent
container_name: portainer_agent
restart: unless-stopped
security_opt:
- no-new-privileges:true
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- /var/lib/docker/volumes:/var/lib/docker/volumes
ports:
- 9001:9001