From 5ef072b6222f8c5d1326c731868f3c4c90b9bd2f Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Wed, 15 Jun 2016 10:07:41 -0700 Subject: [PATCH] Clarify owncloud data storage and add simple example docker-compose.yml --- owncloud/content.md | 4 +++- owncloud/docker-compose.yml | 14 ++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 owncloud/docker-compose.yml diff --git a/owncloud/content.md b/owncloud/content.md index 9e0201b5..82672b25 100644 --- a/owncloud/content.md +++ b/owncloud/content.md @@ -22,7 +22,7 @@ For a MySQL database you can link an database container, e.g. `--link my-mysql:m ## Persistent data -All data is stored within the default volume `/var/www/html`. With this volume, ownCloud will only be updated when the file `version.php` is not present. +All data beyond what lives in the database (file uploads, etc) is stored within the default volume `/var/www/html`. With this volume, ownCloud will only be updated when the file `version.php` is not present. - `-v /:/var/www/html` @@ -35,3 +35,5 @@ For fine grained data persistence, you can use 3 volumes, as shown below. ### Caveat When using the 6.0 image, you need to map the host port to the container port that apache listens on when going through the installation wizard. By default, this is port 80. + +## %%COMPOSE%% diff --git a/owncloud/docker-compose.yml b/owncloud/docker-compose.yml new file mode 100644 index 00000000..39fbdb00 --- /dev/null +++ b/owncloud/docker-compose.yml @@ -0,0 +1,14 @@ +# access via "http://localhost:8080" (or "http://$(docker-machine ip):8080" if using docker-machine) +# during initial setup, use "mysql" as the MySQL hostname + +owncloud: + image: owncloud + links: + - db:mysql + ports: + - 8080:80 + +db: + image: mariadb + environment: + MYSQL_ROOT_PASSWORD: example