version: "3.3" services: portainer: image: "portainer/portainer-ce" container_name: "portainer" restart: always networks: - http_loadbalancing_default volumes: - type: volume source: portainer_databank target: /data - type: bind source: /var/run/docker.sock target: /var/run/docker.sock labels: - "traefik.http.routers.portainer.rule=Host(`portainer.localhost`)" - "traefik.http.services.portainer.loadbalancer.server.port=9000" - "traefik.http.routers.portainer.entrypoints=http" volumes: portainer_databank: networks: http_loadbalancing_default: external: name: http_loadbalancing_default