version: '3' networks: infra_out: external: true services: portainer: image: portainer/agent:latest container_name: portainer-agent volumes: - ~/docker_volumes/portainer_agent/data:/data - /var/run/docker.sock:/var/run/docker.sock ports: - "9001:9001" networks: infra_out: ipv4_address: 10.23.0.10 restart: always