Nextcloud AIO docker container with Nginx web server
  • Dockerfile 93.9%
  • Shell 6.1%
Find a file
2026-02-11 15:10:51 +02:00
.gitignore Add .gitignore file 2026-01-05 20:51:19 +02:00
Containerfile Make use of entrypoint.sh script in Containerfile 2026-01-05 21:07:50 +02:00
entrypoint.sh Create entrypoint.sh script 2026-01-05 21:07:29 +02:00
fpm.conf Create fpm.conf and make php-fpm process use it 2025-12-06 19:10:15 +02:00
nginx.conf Modify nginx configuration so that PHP memory_limit value is set to 1G and mjs files are served with appropriate caching and Content-Type 2026-02-11 12:39:15 +02:00
README.md Update README.md 2026-02-11 15:10:51 +02:00
supervisord.conf Create fpm.conf and make php-fpm process use it 2025-12-06 19:10:15 +02:00

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/nextcloud contains the PHP sources for the Nextcloud application alongside with data
  • /var/log/nginx contains nginx logs for the application
  • /var/log/php84 contains PHP logs for the application