美文网首页
docker部署一个私人网盘ownCloud

docker部署一个私人网盘ownCloud

作者: 小黑佬 | 来源:发表于2020-01-13 14:40 被阅读0次

    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 创建管理员账号,然后使用管理员账号登录即可。

    相关文章

      网友评论

          本文标题:docker部署一个私人网盘ownCloud

          本文链接:https://www.haomeiwen.com/subject/ogogactx.html