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) # 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" # During initial ownCloud setup, select "Storage & database" --> "Configure the database" --> "MySQL/MariaDB"
# Database user: root # Database user: root
# Database password: my-database-password # Database password: example
# Database name: pick any name # Database name: pick any name
# Database host: replace "localhost" with owncloud_db # Database host: replace "localhost" with "mysql"
owncloud: version: '2'
image: owncloud:9
links:
- owncloud_db
ports:
- 8080:80
owncloud_db: services:
image: mariadb
environment: owncloud:
MYSQL_ROOT_PASSWORD: my-database-password image: owncloud
ports:
- 8080:80
mysql:
image: mariadb
environment:
MYSQL_ROOT_PASSWORD: example