Cloud synchronization network disk -seafile

Cloud synchronization network disk -seafile

surroundings

docker-compose build seafile server

  • compose documents

    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.
          - MYSQL_LOG_CONSOLE=true
        volumes:
          - /root/seafile/seafile-mysql/db:/var/lib/mysql  # Requested, specifies the path to MySQL data persistent store.
        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:
          - "50501:80"
    #     - "443:443"  # If https is enabled, cancel the comment.
        volumes:
          - /root/seafile/seafile-data:/shared   # Requested, specifies the path to Seafile data persistent store.
        environment:
          - DB_HOST=db
          - DB_ROOT_PASSWD=root  # Requested, the value shuold be root's password of MySQL service.
    #      - TIME_ZONE=Asia/Shanghai # Optional, default is UTC. Should be uncomment and set to your local time zone.
          - [email protected] # Specifies Seafile admin user, default is '[email protected]'.
          - SEAFILE_ADMIN_PASSWORD=admin     # Specifies Seafile admin password, default is 'asecret'.
          - SEAFILE_SERVER_LETSENCRYPT=false   # Whether to use https or not.
          - SEAFILE_SERVER_HOSTNAME=192.168.9.233:50501 # Specifies your host name if https is enabled.
        depends_on:
          - db
          - memcached
        networks:
          - seafile-net
    
    networks:
      seafile-net:
  • start up

    #安装docker-compse
    yum install docker-compose -y
    
    #在compose文件所在的目录下
    docker-compose up -d 
  • View

    docker ps

    You should see namesfor the seafile seafile-mysql seafile-memcachedthree vessels has been initiated
    If not, you may check the profile to see the path and the path mysqldata seafile data exists, if not, you can create.

    Tip: It is recommended to find a large catalog disk space to store after all, cloud disk.

use

  • Build a seafile server
    that has been set up well in the above, the address is that you build in the station network server ip: 50501, then if you do not change the configuration of
  • Download the client uses
    his credit, he has this seafile cross-platform client, but also simple to use, but note that we're using the free version, if you need the professional version you can buy. Portal
    • Mac
    • Linux
    • Windows
    • Android
    • iPad/iPhone
  • In seafile server to open account
    • First up Log in using an administrator account
      by default administrator account on the docker-compose.yml profile, SEAFILE_ADMIN_EMAIL = suveng @ 163.com, SEAFILE_ADMIN_PASSWORD = admin
      login you can go up, of course, you can also get rid of the configuration when built.

    • In the Add Account Management System
      • You can import Excel
      • You can manually add

Guess you like

Origin www.cnblogs.com/suveng/p/11525856.html