version: '3' networks: infra_out: external: true services: portainer: image: portainer/portainer-ce:alpine container_name: portainer volumes: - /home/alexd/docker_volumes/portainer/data:/data - /var/run/docker.sock:/var/run/docker.sock ports: - "9000:9000" networks: infra_out: ipv4_address: 192.168.23.10 restart: always