0952.html 5.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Run Seafile - Cloud Storage System - in Docker</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="Browser Based,Docker Made Easy,Home Lab,Home Lab Ideas,Install Guide,Self-Hosted,Web Based,Web Based Tools,Debian,FOSS,File Browser,File Sync,Free Open Source Software,Free Software,Linux,Open Source Software,Seafile,Web Based File Management,Docker Tutorial,Docker Simplified,Homelab,MariaDB,MySQL,Docker,Docker Container,Docker How To,Docker Made Simple,How To,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Run Seafile - Cloud Storage System - in Docker">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="07/19/2024 08:38:35 PM" />
  12. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  13. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  14. <script type="text/javascript" src="includes/js/steps.js"></script>
  15. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="gridContainer">
  19. <div class="topMargin"></div>
  20. <div id="listName" class="topMargin">
  21. <h1>Run Seafile - Cloud Storage System - in Docker</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <h2>What is Seafile?</h2>
  26. <blockquote><em>Seafile is an open source file sync&amp;share solution designed for high reliability, performance and productivity. Sync, share and collaborate across devices and teams. Build your team&#39;s knowledge base with Seafile&#39;s built-in Wiki feature. - <a href="https://seafile.com/" target="_blank">https://seafile.com/</a></em></blockquote>
  27. <h2>Installing Docker</h2>
  28. <ol>
  29. <li>Log into the Linux based device</li>
  30. <li>Run the following commands in the terminal
  31. <div class="codeBlock"># install prerequisites<br />
  32. sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg-agent -y<br />
  33. # add docker gpg key<br />
  34. curl -fsSL https://download.docker.com/linux/$(awk -F&#39;=&#39; &#39;/^ID=/{ print $NF }&#39; /etc/os-release)/gpg | sudo apt-key add -<br />
  35. # add docker software repository<br />
  36. sudo add-apt-repository &quot;deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/$(awk -F&#39;=&#39; &#39;/^ID=/{ print $NF }&#39; /etc/os-release) $(lsb_release -cs) stable&quot;<br />
  37. # install docker<br />
  38. sudo apt install docker-ce docker-compose containerd.io -y<br />
  39. # enable and start docker service<br />
  40. sudo systemctl enable docker &amp;&amp; sudo systemctl start docker<br />
  41. # add the current user to the docker group<br />
  42. sudo usermod -aG docker $USER<br />
  43. # reauthenticate for the new group membership to take effect<br />
  44. su - $USER</div>
  45. </li>
  46. </ol>
  47. <h2>Running Seafile</h2>
  48. <ol>
  49. <li>Now that Docker is installed, run the following commands to setup the Seafile Docker container and run it
  50. <div class="codeBlock"># create working directories<br />
  51. mkdir ~/docker/mariadb -p &amp;&amp; mkdir ~/docker/seafile<br />
  52. # set owner of working directories<br />
  53. sudo chown &quot;$USER&quot;:&quot;$USER&quot; ~/docker -R<br />
  54. # create containers network<br />
  55. docker network create containers<br />
  56. # run the mariadb docker container<br />
  57. docker run -d --name mariadb --network containers -e MYSQL_ROOT_PASSWORD=r00tp@ss -v ~/docker/mariadb:/var/lib/mysql --restart=unless-stopped mariadb:latest<br />
  58. # run the seafile docker container<br />
  59. docker run -d --name seafile --network containers -p 8080:80 -e DB_HOST=mariadb -e DB_ROOT_PASSWD=r00tp@ss -e TIME_ZONE=America/New_York -v ~/docker/seafile:/shared --restart=unless-stopped seafileltd/seafile-mc:11.0-latest</div>
  60. </li>
  61. </ol>
  62. <h2>Seafile Setup</h2>
  63. <ol>
  64. <li>Open a web browser and navigate to http://DNSorIP:8080</li>
  65. <li>Login with the username me@example.com and password asecret</li>
  66. <li>Click the profile icon at the top right of the screen &gt; System Admin</li>
  67. <li>Select Users from the left navigation menu</li>
  68. <li>Click the Add User button at the top of the screen</li>
  69. <li>Complete the new user form with an email and password &gt; Click Submit</li>
  70. <li>Click the Admin tab</li>
  71. <li>Click the Add Admin button at the top of the screen</li>
  72. <li>Search for and select the the new user &gt; Submit</li>
  73. <li>Click the profile icon at the top right of the screen &gt; Logout</li>
  74. <li>Log back in using the new user credentials</li>
  75. <li>Click the profile icon at the top right of the screen &gt; System Admin</li>
  76. <li>Select Users from the left navigation menu</li>
  77. <li>Check the box next to the me@example.com &gt; Click Delete Users at the top of the screen</li>
  78. <li>Welcome to Seafile</li>
  79. </ol>
  80. <p>Documentation: <a href="https://manual.seafile.com/docker/deploy_seafile_with_docker/" target="_blank">https://manual.seafile.com/docker/deploy_seafile_with_docker/</a></p> </div>
  81. </div>
  82. </body>
  83. </html>