Docker stack Deployment Seafile (HTTP)

Source: Internet
Author: User
Tags seafile docker swarm

===============================================

2018/5/13_ the 1th time to modify Ccb_warlock

===============================================

Because of the initial mastery of how Docker swarm works, the public services provided to internal it are also containerized.

A recent deployment of seafile may be available to some colleagues, and the Deployment Manual (http://www.cnblogs.com/straycats/p/9033943.html) has been collated for CentOS deployments, Deployment also addresses the deployment of Docker.

I. Pre-conditions

    • Docker Swarm (http://www.cnblogs.com/straycats/p/8978135.html) has been deployed in the environment
    • Preferably also deployed Portainer (http://www.cnblogs.com/straycats/p/8978201.html)
    • The host IP for this tutorial is: 192.168.12.11

Ii. Deployment of Seafile

2.1 Creating a mapped local directory

Mkdir-p/usr/docker-vol/seafile/data/

2.2 Configuring SEAFILE-STACK.YML

Vim/root/seafile-stack.yml

# Add the following content, Wq save.

Version: ' 3' Services:seafile:    image:seafileltd/seafile:latestEnvironment:-tz=asia/Shanghai # Setting the container's time zone for Asia/Shanghai-[Email protected]mymail.cn # Create administrator user name-seafile_admin_password=111111 # Create Administrator account name initial passwordvolumes:#Seafilel persisted data files-/usr/docker-vol/seafile/data/:/shared Deploy:replicas:1Restart_policy:condition:on-Failure Ports:-10,000:8,000#the test found that the current file service port mapping must be 8082, otherwise you will not be able to use the synchronization directory-8,082:8,082Networks:-net01networks:net01:external:true #Using an external network with the same name , net01, if there is no requirement for the network to remove networks information, Docker generates a default network to the service stack

2.3 Creating a service stack Seafile-stack

1) Command mode

Cddocker Stack deploy-c seafile-stack.yml seafile-stack

2) Portainer interface mode (recommended)

Login Portainer (if the Portainer is deployed according to the tutorial above, the browser accesses http://Host ip:9000 to add the contents of the Seafile-stack.yml file in the stack)

Third, modify the configuration

The browser accesses http://Deploy Seafile's virtual machine IP and logs in using the administrator account you just created ([email protected]/111111).

Modify the File_server_root according to the above steps to configure the virtual machine to deploy the Seafile/HTTP//Deployment ip:8082

Resources:
1. https://manual-cn.seafile.com/deploy/deploy_with_docker.html

Docker stack Deployment Seafile (HTTP)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.