Can't install Next Cloud Aio on Portainer. Failed to deploy a stack

Hello people,
I tried to install nextcloud aio today on a new VPS and I received this error message on portainer. I copied the code exactly as it is from https://github.com/nextcloud/all-in-one/blob/main/compose.yaml

Thank you.

My dockers on terminal

root@url:~# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
28ad2b8807b0 jc21/nginx-proxy-manager:latest “/init” 4 hours ago Up 2 minutes 0.0.0.0:80-81->80-81/tcp, 0.0.0.0:443->443/tcp nginx-proxy-manager-app-1
dc31418042bf portainer/portainer-ce:latest “/portainer” 4 hours ago Up 2 minutes 0.0.0.0:8000->8000/tcp, 0.0.0.0:9443->9443/tcp, 9000/tcp portainer
root@url:~#

The error below follows:
failed to deploy a stack: nextcloud-aio-mastercontainer Pulling c926b61bad3b Pulling fs layer e8e26b626c27 Pulling fs layer 23427f6f19cc Pulling fs layer 938ee652f0dd Pulling fs layer 3732066280a1 Pulling fs layer 23dfeb871e9d Pulling fs layer 71442a0585dd Pulling fs layer 930182f44a16 Pulling fs layer 100698e2eb12 Pulling fs layer f1b065e10a03 Pulling fs layer ae06041d8ef4 Pulling fs layer aaa020936514 Pulling fs layer c26bb32e4e8f Pulling fs layer 938ee652f0dd Waiting 62a166801194 Pulling fs layer 3732066280a1 Waiting 930182f44a16 Waiting 23dfeb871e9d Waiting 9fcaffbecdcc Pulling fs layer 71442a0585dd Waiting 7691336c3b78 Pulling fs layer 99234cc7aa15 Pulling fs layer 100698e2eb12 Waiting e3e95ac7ed0d Pulling fs layer f1b065e10a03 Waiting ae06041d8ef4 Waiting c26bb32e4e8f Waiting 62a166801194 Waiting 9fcaffbecdcc Waiting 7691336c3b78 Waiting aaa020936514 Waiting e3e95ac7ed0d Waiting 99234cc7aa15 Waiting e8e26b626c27 Downloading [> ] 28.1kB/2.679MB c926b61bad3b Downloading [> ] 34.73kB/3.402MB 23427f6f19cc Downloading [=============================> ] 733B/1.263kB 23427f6f19cc Downloading [==================================================>] 1.263kB/1.263kB 23427f6f19cc Download complete c926b61bad3b Downloading [===================> ] 1.326MB/3.402MB e8e26b626c27 Downloading [=========================> ] 1.37MB/2.679MB c926b61bad3b Downloading [========================================> ] 2.788MB/3.402MB e8e26b626c27 Downloading [=============================================> ] 2.415MB/2.679MB 938ee652f0dd Download complete e8e26b626c27 Verifying Checksum e8e26b626c27 Download complete c926b61bad3b Verifying Checksum c926b61bad3b Download complete c926b61bad3b Extracting [> ] 65.54kB/3.402MB 3732066280a1 Downloading [> ] 123.7kB/12.09MB c926b61bad3b Extracting [==================================================>] 3.402MB/3.402MB c926b61bad3b Extracting [==================================================>] 3.402MB/3.402MB 23dfeb871e9d Downloading [==================================================>] 497B/497B 23dfeb871e9d Verifying Checksum 23dfeb871e9d Download complete 71442a0585dd Downloading [> ] 127.2kB/12.7MB c926b61bad3b Pull complete e8e26b626c27 Extracting [> ] 32.77kB/2.679MB 3732066280a1 Downloading [=======> ] 1.801MB/12.09MB 71442a0585dd Downloading [=======> ] 1.858MB/12.7MB e8e26b626c27 Extracting [==================================================>] 2.679MB/2.679MB 3732066280a1 Downloading [===========> ] 2.845MB/12.09MB 930182f44a16 Downloading [==============> ] 719B/2.45kB 930182f44a16 Downloading [==================================================>] 2.45kB/2.45kB 930182f44a16 Verifying Checksum 930182f44a16 Download complete e8e26b626c27 Pull complete 23427f6f19cc Extracting [==================================================>] 1.263kB/1.263kB 23427f6f19cc Extracting [==================================================>] 1.263kB/1.263kB 23427f6f19cc Pull complete 938ee652f0dd Extracting [==================================================>] 269B/269B 938ee652f0dd Extracting [==================================================>] 269B/269B 938ee652f0dd Pull complete 71442a0585dd Downloading [=============> ] 3.431MB/12.7MB 3732066280a1 Downloading [================> ] 3.885MB/12.09MB 100698e2eb12 Downloading [=> ] 719B/18.95kB 100698e2eb12 Downloading [==================================================>] 18.95kB/18.95kB 100698e2eb12 Verifying Checksum 100698e2eb12 Download complete 71442a0585dd Downloading [===================> ] 4.873MB/12.7MB 3732066280a1 Downloading [====================> ] 5.065MB/12.09MB 71442a0585dd Downloading [========================> ] 6.339MB/12.7MB f1b065e10a03 Downloading [===> ] 719B/9.177kB f1b065e10a03 Downloading [==================================================>] 9.177kB/9.177kB f1b065e10a03 Verifying Checksum f1b065e10a03 Download complete 3732066280a1 Downloading [=========================> ] 6.105MB/12.09MB 71442a0585dd Downloading [==============================> ] 7.793MB/12.7MB 3732066280a1 Downloading [==============================> ] 7.277MB/12.09MB ae06041d8ef4 Downloading [> ] 148kB/14.71MB 71442a0585dd Downloading [===================================> ] 8.993MB/12.7MB 3732066280a1 Downloading [================================> ] 7.805MB/12.09MB ae06041d8ef4 Downloading [======> ] 1.964MB/14.71MB 71442a0585dd Downloading [====================================> ] 9.386MB/12.7MB 3732066280a1 Downloading [=================================> ] 8.198MB/12.09MB ae06041d8ef4 Downloading [=============> ] 4.033MB/14.71MB 71442a0585dd Downloading [======================================> ] 9.784MB/12.7MB ae06041d8ef4 Downloading [====================> ] 5.974MB/14.71MB 3732066280a1 Downloading [====================================> ] 8.715MB/12.09MB 71442a0585dd Downloading [========================================> ] 10.18MB/12.7MB ae06041d8ef4 Downloading [===========================> ] 8.047MB/14.71MB 3732066280a1 Downloading [=====================================> ] 8.977MB/12.09MB ae06041d8ef4 Downloading [==================================> ] 10.28MB/14.71MB 71442a0585dd Downloading [=========================================> ] 10.44MB/12.7MB 3732066280a1 Downloading [======================================> ] 9.231MB/12.09MB ae06041d8ef4 Downloading [==========================================> ] 12.51MB/14.71MB 71442a0585dd Downloading [==========================================> ] 10.71MB/12.7MB ae06041d8ef4 Verifying Checksum ae06041d8ef4 Download complete 3732066280a1 Downloading [=======================================> ] 9.493MB/12.09MB aaa020936514 Downloading [> ] 168.1kB/16.4MB 71442a0585dd Downloading [===========================================> ] 11.11MB/12.7MB 3732066280a1 Downloading [========================================> ] 9.886MB/12.09MB aaa020936514 Downloading [=====> ] 1.956MB/16.4MB 71442a0585dd Downloading [=============================================> ] 11.64MB/12.7MB 3732066280a1 Downloading [===========================================> ] 10.41MB/12.09MB aaa020936514 Downloading [==========> ] 3.558MB/16.4MB 71442a0585dd Downloading [================================================> ] 12.29MB/12.7MB 3732066280a1 Downloading [=============================================> ] 11.07MB/12.09MB aaa020936514 Downloading [===============> ] 4.979MB/16.4MB 71442a0585dd Verifying Checksum 71442a0585dd Download complete 3732066280a1 Downloading [================================================> ] 11.85MB/12.09MB 3732066280a1 Verifying Checksum 3732066280a1 Download complete aaa020936514 Downloading [====================> ] 6.601MB/16.4MB c26bb32e4e8f Downloading [==================================================>] 143B/143B c26bb32e4e8f Verifying Checksum c26bb32e4e8f Download complete 3732066280a1 Extracting [> ] 131.1kB/12.09MB 3732066280a1 Extracting [==================================================>] 12.09MB/12.09MB 3732066280a1 Pull complete 23dfeb871e9d Extracting [==================================================>] 497B/497B 23dfeb871e9d Extracting [==================================================>] 497B/497B aaa020936514 Downloading [===========================> ] 9.112MB/16.4MB 23dfeb871e9d Pull complete 71442a0585dd Extracting [> ] 131.1kB/12.7MB 9fcaffbecdcc Downloading [=====> ] 720B/6.564kB 9fcaffbecdcc Downloading [==================================================>] 6.564kB/6.564kB 9fcaffbecdcc Verifying Checksum 9fcaffbecdcc Download complete 62a166801194 Downloading [> ] 294.2kB/28.41MB aaa020936514 Downloading [================================> ] 10.71MB/16.4MB 71442a0585dd Extracting [==================> ] 4.588MB/12.7MB 62a166801194 Downloading [===> ] 2.063MB/28.41MB aaa020936514 Downloading [==================================> ] 11.41MB/16.4MB 71442a0585dd Extracting [===========================> ] 7.078MB/12.7MB 7691336c3b78 Downloading [==================================================>] 409B/409B 7691336c3b78 Verifying Checksum 7691336c3b78 Download complete 62a166801194 Downloading [=======> ] 4.111MB/28.41MB 71442a0585dd Extracting [==============================> ] 7.864MB/12.7MB aaa020936514 Downloading [=====================================> ] 12.3MB/16.4MB 62a166801194 Downloading [==========> ] 6.175MB/28.41MB 71442a0585dd Extracting [========================================> ] 10.35MB/12.7MB 99234cc7aa15 Downloading [==================================================>] 526B/526B 99234cc7aa15 Verifying Checksum 99234cc7aa15 Download complete aaa020936514 Downloading [=======================================> ] 12.84MB/16.4MB 62a166801194 Downloading [==============> ] 8.244MB/28.41MB 71442a0585dd Extracting [==================================================>] 12.7MB/12.7MB 71442a0585dd Pull complete 930182f44a16 Extracting [==================================================>] 2.45kB/2.45kB 930182f44a16 Extracting [==================================================>] 2.45kB/2.45kB 930182f44a16 Pull complete 100698e2eb12 Extracting [==================================================>] 18.95kB/18.95kB 100698e2eb12 Extracting [==================================================>] 18.95kB/18.95kB 100698e2eb12 Pull complete f1b065e10a03 Extracting [==================================================>] 9.177kB/9.177kB f1b065e10a03 Extracting [==================================================>] 9.177kB/9.177kB f1b065e10a03 Pull complete aaa020936514 Downloading [========================================> ] 13.37MB/16.4MB ae06041d8ef4 Extracting [> ] 163.8kB/14.71MB 62a166801194 Downloading [==================> ] 10.59MB/28.41MB e3e95ac7ed0d Downloading [================================> ] 720B/1.099kB e3e95ac7ed0d Downloading [==================================================>] 1.099kB/1.099kB e3e95ac7ed0d Verifying Checksum e3e95ac7ed0d Download complete ae06041d8ef4 Extracting [=====================> ] 6.226MB/14.71MB aaa020936514 Downloading [==========================================> ] 13.9MB/16.4MB 62a166801194 Downloading [======================> ] 12.95MB/28.41MB ae06041d8ef4 Extracting [===================================> ] 10.32MB/14.71MB 62a166801194 Downloading [==========================> ] 15.3MB/28.41MB aaa020936514 Downloading [===========================================> ] 14.26MB/16.4MB ae06041d8ef4 Extracting [==================================================>] 14.71MB/14.71MB ae06041d8ef4 Pull complete 62a166801194 Downloading [===============================> ] 17.66MB/28.41MB aaa020936514 Downloading [============================================> ] 14.61MB/16.4MB 62a166801194 Downloading [===================================> ] 20.02MB/28.41MB 62a166801194 Downloading [=======================================> ] 22.37MB/28.41MB aaa020936514 Downloading [=============================================> ] 14.97MB/16.4MB 62a166801194 Downloading [===========================================> ] 24.73MB/28.41MB aaa020936514 Downloading [==============================================> ] 15.33MB/16.4MB 62a166801194 Downloading [===============================================> ] 27.09MB/28.41MB 62a166801194 Verifying Checksum 62a166801194 Download complete aaa020936514 Downloading [===============================================> ] 15.69MB/16.4MB aaa020936514 Downloading [==================================================>] 16.4MB/16.4MB aaa020936514 Verifying Checksum aaa020936514 Download complete aaa020936514 Extracting [> ] 196.6kB/16.4MB aaa020936514 Extracting [==============> ] 4.719MB/16.4MB aaa020936514 Extracting [=====================================> ] 12.39MB/16.4MB aaa020936514 Extracting [==================================================>] 16.4MB/16.4MB aaa020936514 Pull complete c26bb32e4e8f Extracting [==================================================>] 143B/143B c26bb32e4e8f Extracting [==================================================>] 143B/143B c26bb32e4e8f Pull complete 62a166801194 Extracting [> ] 294.9kB/28.41MB 62a166801194 Extracting [========> ] 4.719MB/28.41MB 62a166801194 Extracting [==============> ] 7.963MB/28.41MB 62a166801194 Extracting [=====================> ] 12.09MB/28.41MB 62a166801194 Extracting [=======================> ] 13.57MB/28.41MB 62a166801194 Extracting [================================> ] 18.58MB/28.41MB 62a166801194 Extracting [=====================================> ] 21.23MB/28.41MB 62a166801194 Extracting [========================================> ] 23MB/28.41MB 62a166801194 Extracting [===========================================> ] 24.48MB/28.41MB 62a166801194 Extracting [===============================================> ] 27.13MB/28.41MB 62a166801194 Extracting [==================================================>] 28.41MB/28.41MB 62a166801194 Pull complete 9fcaffbecdcc Extracting [==================================================>] 6.564kB/6.564kB 9fcaffbecdcc Extracting [==================================================>] 6.564kB/6.564kB 9fcaffbecdcc Pull complete 7691336c3b78 Extracting [==================================================>] 409B/409B 7691336c3b78 Extracting [==================================================>] 409B/409B 7691336c3b78 Pull complete 99234cc7aa15 Extracting [==================================================>] 526B/526B 99234cc7aa15 Extracting [==================================================>] 526B/526B 99234cc7aa15 Pull complete e3e95ac7ed0d Extracting [==================================================>] 1.099kB/1.099kB e3e95ac7ed0d Extracting [==================================================>] 1.099kB/1.099kB e3e95ac7ed0d Pull complete nextcloud-aio-mastercontainer Pulled Network nextcloud-aio-mastercontainer_default Creating Network nextcloud-aio-mastercontainer_default Created Volume “nextcloud_aio_mastercontainer” Creating Volume “nextcloud_aio_mastercontainer” Created Container nextcloud-aio-mastercontainer Creating Container nextcloud-aio-mastercontainer Created Container nextcloud-aio-mastercontainer Starting Error response from daemon: driver failed programming external connectivity on endpoint nextcloud-aio-mastercontainer (c2742c7bbde13acdc90996ac5b00cf23a92f3c0d22e4298c158da7e46c4e67f5): Bind for 0.0.0.0:80 failed: port is already allocated

This is your problem.

Hi,
Nginx Proxy Manager is using the port.

I had some other issues with Nginx Proxy Manager, so I’m going to use what NextCloud states in the documentation, Caddy.

Thank you.