version: '3.3' services: portainer: image: portainer/portainer-ce ports: - "8000:8000" - "9000:9000" volumes: - /var/run/docker.sock:/var/run/docker.socsk - portainer_data:/data restart: always volumes: portainer_data: {}