Upgrade owncloud's docker-compose.yml to version 2

This commit is contained in:
Tianon Gravi 2016-07-06 22:31:37 -07:00
parent 6a6f1f5345
commit a638192844
1 changed files with 15 additions and 13 deletions

View File

@ -1,21 +1,23 @@
# ownCloud with MariaDB
# 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: my-database-password
# Database password: example
# Database name: pick any name
# Database host: replace "localhost" with owncloud_db
# Database host: replace "localhost" with "mysql"
owncloud:
image: owncloud:9
links:
- owncloud_db
ports:
- 8080:80
version: '2'
owncloud_db:
image: mariadb
environment:
MYSQL_ROOT_PASSWORD: my-database-password
services:
owncloud:
image: owncloud
ports:
- 8080:80
mysql:
image: mariadb
environment:
MYSQL_ROOT_PASSWORD: example