Public | Automated Build

Last pushed: a year ago
Short Description
Short description is empty for this repo.
Full Description

This builds a docker container with owncloud running in it. It uses a docker volume in order to allow you to persist the data and config between different containers. It is setup for usage with MySQL and Sqlite but, it does not have a linked MySQL container. Pull-Requests are welcome!


Building the image

run docker build -t 'brejoc/owncloud' .


  1. You can either build this image locally or just fetch it from the docker hub: brejoc/owncloud.
  2. Run it docker run -d -m 1g -p --name="my_docker_owncloud" -v /var/owncloud/data:/var/www/owncloud/data -v /var/owncloud/config:/var/www/owncloud/config brejoc/owncloud
  3. Setup a reverse proxy to server it from port 80:
server {
         listen 80;
         return 301 https://$host$request_uri;

server {
    listen 443;
    ssl on;
    ssl_certificate /etc/ssl/private/example_com.cert;
    ssl_certificate_key /etc/ssl/private/example_com.key;
    location / {
        proxy_pass  ;
        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;
Docker Pull Command
Source Repository