A complete Docker Compose stack for running Nextcloud along with nginx
184
This image builds upon the nginx:alpine image and adds and an nginx.conf.template replacement. Dockerfile and nginx can be found in the official nextcloud/docker examples section.
I added the NEXTCLOUD_HOST environment variable to nginx.conf.template.
version: '2'
services:
nextcloud:
image: nextcloud:fpm-alpine
volumes:
- nextcloud:/var/www/html
[...]
nginx:
image: vinado/nextcloud-nginx:latest
volumes:
- nextcloud:/var/www/html:ro
environment:
- NEXTCLOUD_HOST=nextcloud
depends_on:
- nextcloud
[...]
The source is available on GitHub. Please report any issues.
To build the image from the Dockerfile run:
docker build -t vinado/nextcloud-nginx:latest .
Content type
Image
Digest
Size
9.1 MB
Last updated
almost 6 years ago
docker pull vinado/nextcloud-nginx