zoukankan      html  css  js  c++  java
  • seafile

    1.装docker-compose:

    pip install docker-compose
    sudo ln -sf /home/olawod/.local/bin/docker-compose /usr/bin/docker-compose # 第一个地址是从pip uninstall docker-compose得知的
    docker-compose -v
    

    2.为docker配置镜像加速器:https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors

    sudo mkdir -p /etc/docker
    sudo tee /etc/docker/daemon.json <<-'EOF'
    {
      "registry-mirrors": ["https://1zqszjs5.mirror.aliyuncs.com"]
    }
    EOF
    sudo systemctl daemon-reload
    sudo systemctl restart docker
    

    3.下载并修改 docker-compose.yml:https://docs.seafile.com/d/cb1d3f97106847abbf31/files/?p=/docker/docker-compose.yml

    version: '2.0'
    services:
      db:
        image: mariadb:10.1
        container_name: seafile-mysql
        environment:
          - MYSQL_ROOT_PASSWORD=root  # Requested, set the root's password of MySQL service. 更改1
          - MYSQL_LOG_CONSOLE=true
        volumes:
          - /home/myseafile/seafile-mysql  # Requested, specifies the path to MySQL data persistent store. 更改2
        networks:
          - seafile-net
    
      memcached:
        image: memcached:1.5.6
        container_name: seafile-memcached
        entrypoint: memcached -m 256
        networks:
          - seafile-net
              
      seafile:
        image: seafileltd/seafile-mc:latest
        container_name: seafile
        ports:
          - "8080:80" # 更改3
    #      - "443:443"  # If https is enabled, cancel the comment.
        volumes:
          - /home/myseafile/seafile-data   # Requested, specifies the path to Seafile data persistent store. 更改4
        environment:
          - DB_HOST=db
          - DB_ROOT_PASSWD=root  # Requested, the value shuold be root's password of MySQL service. 更改5
    #      - TIME_ZONE=Asia/Shanghai # Optional, default is UTC. Should be uncomment and set to your local time zone.
          - SEAFILE_ADMIN_EMAIL=me@example.com # Specifies Seafile admin user, default is 'me@example.com'. 更改6
          - SEAFILE_ADMIN_PASSWORD=asecret     # Specifies Seafile admin password, default is 'asecret'. 更改7
          - SEAFILE_SERVER_LETSENCRYPT=false   # Whether use letsencrypt to generate cert.
          - SEAFILE_SERVER_HOSTNAME=seafile.example.com # Specifies your host name. 绑了域名才改
        depends_on:
          - db
          - memcached
        networks:
          - seafile-net
    
    networks:
      seafile-net:
    

    4.启动seafile服务:https://cloud.seafile.com/published/seafile-manual-cn/docker/用Docker部署Seafile.md

    sudo docker-compose up -d
    

    5.使用seafile
    然后就可以访问 ip地址:8080 来使用seafile啦

    6.其实还有很多没整,以后再说

  • 相关阅读:
    化DataSet对象并压缩
    数据库连接
    触发器
    事务
    关于C语言的宏
    GCC中的一些参数
    《tkinter实用教程六》tkinter ttk.Label 控件
    《tkinter实用教程三》ttk.Button 控件
    5. 替换空格
    《tkinter实用教程二》ttk 子模块
  • 原文地址:https://www.cnblogs.com/holaworld/p/13715827.html
Copyright © 2011-2022 走看看