Nextcloud AIO docker container with Nginx web server
- Dockerfile 93.9%
- Shell 6.1%
| .gitignore | ||
| Containerfile | ||
| entrypoint.sh | ||
| fpm.conf | ||
| nginx.conf | ||
| README.md | ||
| supervisord.conf | ||
Nextcloud nginx docker build
This repository provides a custom Dockerfile to build a Nextcloud container with nginx web server. Unlike using the default Apache AIO container, this nginx based container is a bit more lightweight and by default allows network requests up to 10GB in size.
Getting started
First you should build and tag the container. By default, the included Containerfile pulls the latest Nextcloud tarball, verifies it and extracts it to appropriate location.
$ docker build -t registry.example.com/nextcloud:latest . -f Containerfile
After the container building has finished, you can spin up the container using following commands:
$ docker run -p 127.0.0.1:8080:80 -v ./logs/nginx:/var/log/nginx -v ./logs/php84:/var/log/php84 -v ./app:/var/www/nextcloud registry.example.com/nextcloud:latest
The specified volumes are following:
/var/www/nextcloudcontains the PHP sources for the Nextcloud application alongside with data/var/log/nginxcontains nginx logs for the application/var/log/php84contains PHP logs for the application