version: '3' services: portainer_agent: image: portainer/agent:latest pull_policy: always container_name: portainer_agent restart: always ports: - 9001:9001 volumes: - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro - /var/run/docker.sock:/var/run/docker.sock:ro