--- services: portainer: image: portainer/portainer-ee:2.19.1 container_name: portainer ports: - 9000:9000 networks: public: ipv4_address: 192.168.240.46 volumes: - /var/run/docker.sock:/var/run/docker.sock - portainer_data:/data restart: unless-stopped volumes: portainer_data: