docker-compose.yml
# 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
volumes:
- "/mydata/code/ownCloud/ownData:/var/www/html"
ports:
- 8021:80
mysql:
image: mysql:5.6
volumes:
- "/mydata/code/ownCloud/mysqldata:/var/lib/mysql"
ports:
- 3308:3306
environment:
MYSQL_ROOT_PASSWORD: 123456
MYSQL_DATABASE: ownCloud
MYSQL_USER: abc
MYSQL_PASSWORD: 123456
开始的时候使用admin admin 创建管理员账号,然后使用管理员账号登录即可。
网友评论