Merge pull request #636 from infosiftr/owncloud-version-2

Upgrade owncloud's docker-compose.yml to version 2
This commit is contained in:
yosifkit 2016-07-07 11:50:05 -07:00 committed by GitHub
commit 1feb6afe85
1 changed files with 21 additions and 12 deletions

View File

@ -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 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"
owncloud:
image: owncloud
links:
- db:mysql
ports:
- 8080:80
version: '2'
db:
image: mariadb
environment:
MYSQL_ROOT_PASSWORD: example
services:
owncloud:
image: owncloud
ports:
- 8080:80
mysql:
image: mariadb
environment:
MYSQL_ROOT_PASSWORD: example