export LOCAL_DOCKER_REGISTRY=${REGISTRY_DOMAIN}:${REGISTRY_PORT}/${ROOT}/${NAME}/ \
&& docker stack rm portainer \
&& echo 'sleeping...60' \
&& sleep 60 \
&& docker stack deploy -c docker-compose.yml portainer --with-registry-auth