# \[Solved\] Docker based NextCloud AiO with nginx on separate Ubuntu VM - not working

**URL:** <https://help.nextcloud.com/t/solved-docker-based-nextcloud-aio-with-nginx-on-separate-ubuntu-vm-not-working/206743>\
**Category:** 📦 Appliances (Docker, Snappy, VM, NCP, AIO)\
**Tags:** reverseproxy, caddy, docker, nc30, aio, docker-compose\
**Created:** [October 14, 2024, 7:14am UTC](https://help.nextcloud.com/t/solved-docker-based-nextcloud-aio-with-nginx-on-separate-ubuntu-vm-not-working/206743 "2024-10-14T07:14:45Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![vawaver](https://help.nextcloud.com/user_avatar/help.nextcloud.com/vawaver/32/71824_2.png) [@vawaver](https://help.nextcloud.com/u/vawaver)\
**Post date:** [October 14, 2024, 11:02am UTC](https://help.nextcloud.com/t/solved-docker-based-nextcloud-aio-with-nginx-on-separate-ubuntu-vm-not-working/206743/6 "2024-10-14T11:02:57Z")

</div>

## My docker-compose.yml

```auto
volumes:
 nextcloud_aio_mastercontainer:
   name: nextcloud_aio_mastercontainer
services:
 nextcloud:
   image: nextcloud/all-in-one:latest
   restart: unless-stopped
   container_name: nextcloud-aio-mastercontainer
   volumes:
     - nextcloud_aio_mastercontainer:/mnt/docker-aio-config
     - /var/run/docker.sock:/var/run/docker.sock:ro
   ports:
     - 6789:8080 # change the port on the left side if it's already in use on your host system.
   environment:
     - APACHE_PORT=11000

```

Then Nextcloud AIO for a local start is available on [http://lanip-of-your-vm02:6789](http://lanip-of-your-vm02:6789). You can choose which containers to run.  
Start all your Nextcloud AIO dockers there.  
Then you can set up NGINX Proxy server for domain/subdomain forwarding.

## My NGINX Proxy settings

3 pages of settings -  
[nginx\_settings.pdf](https://help.nextcloud.com/uploads/short-url/pgPI7yA0RylMEpW3BIvXRmKv0nh.pdf) (133,0 KB)  
When you will set up `SSL` tab the first time - use `Request new certificate`.

Code for `Advanced` tab:

```auto
client_body_buffer_size 512k;
proxy_read_timeout 86400s;
client_max_body_size 0;

```

Let me know if it will help you.

---

_[View the full topic](https://help.nextcloud.com/t/solved-docker-based-nextcloud-aio-with-nginx-on-separate-ubuntu-vm-not-working/206743)._
