version: "3" services: portainer: image: portainer/portainer-ce:latest ports: - 9443:9443 - 9000:9000 volumes: - data:/data - /var/run/docker.sock:/var/run/docker.sock - ./curl:/usr/local/bin/curl restart: unless-stopped healthcheck: test: ["CMD","/usr/local/bin/curl", "http://localhost:9000/api/system/status"] interval: 30s timeout: 10s retries: 3 start_period: 40s volumes: data: