# /services/portainer/compose.yml services: portainer: image: portainer/portainer-ce:lts container_name: portainer restart: always healthcheck: test: curl -f http://localhost:9000/api/status || exit 1 interval: 30s timeout: 10s retries: 3 networks: - traefik volumes: - ./data:/data - /var/run/docker.sock:/var/run/docker.sock networks: traefik: external: true