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) # ownCloud with MariaDB/MySQL
# during initial setup, use "mysql" as the MySQL hostname #
# 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: owncloud:
image: owncloud image: owncloud
links:
- db:mysql
ports: ports:
- 8080:80 - 8080:80
db: mysql:
image: mariadb image: mariadb
environment: environment:
MYSQL_ROOT_PASSWORD: example MYSQL_ROOT_PASSWORD: example