瀏覽代碼

0952: Run Seafile - Cloud Storage System - in Docker

i12bretro 11 月之前
父節點
當前提交
4a9872ea8a
共有 1 個文件被更改,包括 92 次插入0 次删除
  1. 92 0
      0952.html

+ 92 - 0
0952.html

@@ -0,0 +1,92 @@
+    <!DOCTYPE html>
+    <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
+      <head>
+        <title>Run Seafile - Cloud Storage System - in Docker</title>
+        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+        <meta charset="UTF-8">
+        <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">
+        <meta name="author" content="i12bretro">
+        <meta name="description" content="Run Seafile - Cloud Storage System - in Docker">
+        <meta name="viewport" content="width=device-width, initial-scale=1.0">
+        <meta name="revised" content="07/19/2024 08:38:35 PM" />
+				          <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
+				  <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
+				        <script type="text/javascript" src="includes/js/steps.js"></script>
+        <link href="css/steps.css" rel="stylesheet" type="text/css" />
+      </head>
+      <body>
+        <div id="gridContainer">
+          <div class="topMargin"></div>
+          <div id="listName" class="topMargin">
+            <h1>Run Seafile - Cloud Storage System - in Docker</h1>
+          </div>
+          <div></div>
+          <div id="content">
+          <h2>What is Seafile?</h2>
+
+<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>
+
+<h2>Installing Docker</h2>
+
+<ol>
+	<li>Log into the Linux based device</li>
+	<li>Run the following commands in the terminal
+	<div class="codeBlock"># install prerequisites<br />
+	sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg-agent -y<br />
+	# add docker gpg key<br />
+	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 />
+	# add docker software repository<br />
+	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 />
+	# install docker<br />
+	sudo apt install docker-ce docker-compose containerd.io -y<br />
+	# enable and start docker service<br />
+	sudo systemctl enable docker &amp;&amp; sudo systemctl start docker<br />
+	# add the current user to the docker group<br />
+	sudo usermod -aG docker $USER<br />
+	# reauthenticate for the new group membership to take effect<br />
+	su - $USER</div>
+	</li>
+</ol>
+
+<h2>Running Seafile</h2>
+
+<ol>
+	<li>Now that Docker is installed, run the following commands to setup the Seafile Docker container and run it
+	<div class="codeBlock"># create working directories<br />
+	mkdir ~/docker/mariadb -p &amp;&amp; mkdir ~/docker/seafile<br />
+	# set owner of working directories<br />
+	sudo chown &quot;$USER&quot;:&quot;$USER&quot; ~/docker -R<br />
+	# create containers network<br />
+	docker network create containers<br />
+	# run the mariadb docker container<br />
+	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 />
+	# run the seafile docker container<br />
+	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>
+	</li>
+</ol>
+
+<h2>Seafile Setup</h2>
+
+<ol>
+	<li>Open a web browser and navigate to http://DNSorIP:8080</li>
+	<li>Login with the username me@example.com and password asecret</li>
+	<li>Click the profile icon at the top right of the screen &gt; System Admin</li>
+	<li>Select Users from the left navigation menu</li>
+	<li>Click the Add User button at the top of the screen</li>
+	<li>Complete the new user form with an email and password &gt; Click Submit</li>
+	<li>Click the Admin tab</li>
+	<li>Click the Add Admin button at the top of the screen</li>
+	<li>Search for and select the the new user &gt; Submit</li>
+	<li>Click the profile icon at the top right of the screen &gt; Logout</li>
+	<li>Log back in using the new user credentials</li>
+	<li>Click the profile icon at the top right of the screen &gt; System Admin</li>
+	<li>Select Users from the left navigation menu</li>
+	<li>Check the box next to the me@example.com &gt; Click Delete Users at the top of the screen</li>
+	<li>Welcome to Seafile</li>
+</ol>
+
+<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>
+        </div>
+      </body>
+    </html>
+