Files
homelab/nextcloud/README.md
2024-06-06 20:41:43 -04:00

37 lines
714 B
Markdown

# Nextcloud AIO
## Prereq
1. Have a reverse proxy pointing at your server
2. Have a valid certificate
## Setup
```bash
docker run \
--init \
--sig-proxy=false \
--name nextcloud-aio-mastercontainer \
--restart always \
--publish 8080:8080 \
--env APACHE_PORT=11000 \
--env APACHE_IP_BINDING=0.0.0.0 \
--volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config \
--volume /var/run/docker.sock:/var/run/docker.sock:ro \
nextcloud/all-in-one:latest
```
## Trusted Proxy
```bash
docker exec --user www-data -it nextcloud-aio-nextcloud php occ config:system:set trusted_proxies 2 --value="10.1.0.0/16"
```
## Uninstall
```bash
docker stop $(docker ps -a -q)
docker system prune
docker volume prune -a -f
```