Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Daniele Tricoli 0027dd3892
Update copyright years
5 years ago
.dockerignore Update ignored files 8 years ago
.gitignore Switch to git 8 years ago
Dockerfile Bump nextcloud to 13.0.0 5 years ago
LICENSE Update copyright years 5 years ago
README.md Update README 6 years ago
crontab Migrate to Nextcloud 10.0.1 6 years ago
nextcloud.conf Point to the correct root 6 years ago
start.sh Start also cron 7 years ago



Docker i386 image with Nextcloud and nginx. It uses SQLite as database because it is intended for personal use only (one user). It also uses two docker volumes, one for config and one for data.


    docker build -t 'yourusername/nextcloud' .


    docker run -d -p --name nextcloud \
    -v /srv/nextcloud/config:/srv/nextcloud/config \
    -v /srv/nextcloud/data:/srv/nextcloud/data eriol/nextcloud

For nextcloud >= 8.1.0 you need, on the host, to link certificates bundle inside config volume:

    ln -s /etc/ssl/certs/ca-certificates.crt /srv/nextcloud/config/ca-bundle.crt

You should use nginx on the host as reverse proxy:

    server {
       listen 80;
       server_name nextcloud.example.org;
       return 301 https://$host$request_uri;

    server {
       listen 443;
       server_name owncloud.example.com;

       ssl on;
       ssl_certificate /etc/ssl/private/example_org.cert;
       ssl_certificate_key /etc/ssl/private/example_org.key;

       location / {
          proxy_redirect off;
          proxy_buffering off;
          proxy_set_header    Host    $host;
          proxy_set_header    X-Real-IP   $remote_addr;
          proxy_set_header    X-Forwarded-For $proxy_add_x_forwarded_for;