|
|
@@ -1,14 +1,23 @@
|
|
|
-# 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
|
|
|
+# ownCloud with MariaDB/MySQL
|
|
|
+#
|
|
|
+# Access via "http://localhost:8080" (or "http://$(docker-machine ip):8080" if using docker-machine)
|
|
|
+#
|
|
|
+# During initial ownCloud setup, select "Storage & database" --> "Configure the database" --> "MySQL/MariaDB"
|
|
|
+# Database user: root
|
|
|
+# Database password: example
|
|
|
+# Database name: pick any name
|
|
|
+# Database host: replace "localhost" with "mysql"
|
|
|
+
|
|
|
+version: '2'
|
|
|
+
|
|
|
+services:
|
|
|
+
|
|
|
+ owncloud:
|
|
|
+ image: owncloud
|
|
|
+ ports:
|
|
|
+ - 8080:80
|
|
|
+
|
|
|
+ mysql:
|
|
|
+ image: mariadb
|
|
|
+ environment:
|
|
|
+ MYSQL_ROOT_PASSWORD: example
|