# NextCloud

## About

I use NextCloud mainly to upload and access files which I deem as throwaway AKA not as important. More important files go straight to my NAS which is shared out via SMB. The NextCloud instance is used to share directories and files which looks nice to family and friends :joy:! Also, their IOS and Android app makes this a very solid self-hosted Cloud option!

![](/files/z1rpV2thkmFEYlYatL3l)

![](/files/aOHAX7vYtzeb69qi93hB)

## Installation

### Docker-Compose

```
version: '3.3'
services:
    nextcloud:
        ports:
            - '8080:80'
        image: nextcloud
```

I recommend setting up a VM solely for Next Cloud for stability reasons. I used to run this docker on a pi when I didn't have a full fledged server and it was surprisingly pretty solid! Do it at your own risk tho :warning:!&#x20;

### Pre-Installed VM

If you're in a time crunch, you can simple get a preconfigured VM from [hanssonit](https://www.hanssonit.se/nextcloud-vm/) and deploy that into your infra! I've tested this option before and it works just as well or even better than the docker.

![](/files/rGxyIdN3MZFxlJTNdTye)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://homelab.4pfsec.com/self-hosted-services/nextcloud.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
