Public | Automated Build

Last pushed: 2 years ago
Short Description
Simple OwnCloud container based on alpine and nginx.
Full Description

Owncloud Docker Container

All you need to build a docker container of OwnCloud.
This container is based on aphine and contains the OwnCloud apps contacts, documents and calendar.
Also there is no tls/ssl support. For transport encryption you should use a separate
nginx reverse proxy.

Run with existing config

To run this container you need an existing owncloud config and data directory

docker run --name owncloud -v $PWD/config:/owncloud/config -v $PWD/data:/owncloud/data d4v1d31/owncloud

Depending on your database you should link this container to a database container.

Run OwnCloud for the first time

You could set the following Envirenment variables for the first run without
existing configuration or database:

Variable Default Description
DBTYPE mysql Type of database (only mysql supportet yet)
DBNAME owncloud Database name
DBHOST mysqldb Hostname or address to database
DBUSER root Database Username for OwnCloud
DBPASS password Password for database username
ADMIN admin Username for OwnCloud administrator
ADMINPASS password Password for OwnCloud administrator

Or run with the default settings like this:

docker run --name db -e MYSQL_ROOT_PASSWORD=password -d mariadb
docker run --name owncloud -v $PWD/config:/owncloud/config \
                           -v $PWD/data:/owncloud/data \
                           -p 80:80 \
                           --link db:mysqldb d4v1d31/owncloud

Add more OwnCloud apps

To add more apps copy the download link of the app and add two lines like this to
the Dockerfile:

ADD /tmp/
RUN    tar -xzf /tmp/calendar.tar.gz -C /owncloud/apps/

Additional the app must be enable at container start, so you should add a line
like the following to the

$ocdir/occ app:enable calendar

Now rebuild the image.

Docker Pull Command
Source Repository