Ver código fonte

0938: Run Lychee - Photo Management System - in Docker

i12bretro 11 meses atrás
pai
commit
d743470bb4
1 arquivos alterados com 95 adições e 0 exclusões
  1. 95 0
      0938.html

+ 95 - 0
0938.html

@@ -0,0 +1,95 @@
+    <!DOCTYPE html>
+    <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
+      <head>
+        <title>Run Lychee - Photo Management 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,Containerize,Containers,Docker,Docker Container,Docker Host,Docker How To,Docker Made Simple,Docker Setup Tutorial,Docker Simplified,Google Photos Alternative,Linux,Photo Management,Photo Manager,Photo Organizer,Ubuntu,Lychee,Lychee Photo Management,How To,Tutorial,i12bretro">
+        <meta name="author" content="i12bretro">
+        <meta name="description" content="Run Lychee - Photo Management System - in Docker">
+        <meta name="viewport" content="width=device-width, initial-scale=1.0">
+        <meta name="revised" content="08/11/2024 09:31:30 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 Lychee - Photo Management System - in Docker</h1>
+          </div>
+          <div></div>
+          <div id="content">
+          <h2>What is Lychee?</h2>
+
+<blockquote><em>Lychee is a free photo-management tool, which runs on your server or web-space. Installing is a matter of seconds. Upload, manage and share photos like from a native application. Lychee comes with everything you need and all your photos are stored securely. -<a href="https://lycheeorg.github.io/" target="_blank">https://lycheeorg.github.io/</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 Lychee</h2>
+
+<ol>
+	<li>Continue with the following commands in a terminal window
+	<div class="codeBlock"># list current uid and gid, note these for later<br />
+	id $user<br />
+	# create working directories<br />
+	mkdir ~/docker/lychee/{conf,uploads,sim} -p &amp;&amp; mkdir ~/docker/mariadb -p<br />
+	# set ownership on the 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@$$ -e MYSQL_USER=lychee_rw -e MYSQL_PASSWORD=&#39;Lych33!&#39; -e MYSQL_DATABASE=lychee -v ~/docker/mariadb:/var/lib/mysql -p 3306:3306 --restart=unless-stopped mariadb:latest<br />
+	# run the lychee docker image<br />
+	# replace PUID, GUID with the output of the id $user command above<br />
+	docker run -d --name lychee --network containers -e PUID=1000 -e PGID=1000 -e TZ=America/New_York -e PHP_TZ=America/New_York -e DB_CONNECTION=mysql -e DB_HOST=mariadb -e DB_PORT=3306 -e DB_USERNAME=lychee_rw -e DB_PASSWORD=&#39;Lych33!&#39; -e DB_DATABASE=lychee -p 8090:80 -v ~/docker/lychee/conf:/config -v ~/docker/lychee/uploads:/uploads -v ~/docker/lychee/sym:/sym --restart=unless-stopped lycheeorg/lychee</div>
+	</li>
+	<li>Open a web browser and navigate to http://DNSorIP:8090</li>
+	<li>Click Next at the Lychee welcome screen</li>
+	<li>Click Next at the Requirements Check</li>
+	<li>Click Next at the Permissions Check</li>
+	<li>Update at least the following values in the 
+	<p>APP_URL=http://DNSorIP:8090<br />
+	<br />
+	DB_CONNECTION=mysql<br />
+	DB_HOST=mariadb<br />
+	DB_PORT=3306<br />
+	DB_DATABASE=lychee<br />
+	DB_USERNAME=lychee_rw<br />
+	DB_PASSWORD=Lych33!</p>
+	</li>
+	<li>Click Save &gt; Click Install</li>
+	<li>Once the installation completes click Set up admin account</li>
+	<li>Enter a Username &gt; Enter and confirm a Password &gt; Click Create admin account</li>
+	<li>Click Open Lychee</li>
+	<li>Login using the username and password setup earlier</li>
+	<li>Welcome to Lychee</li>
+</ol>
+
+<p>Documentation: <a href="https://lycheeorg.github.io/docs/#installation" target="_blank">https://lycheeorg.github.io/docs/#installation</a></p>          </div>
+        </div>
+      </body>
+    </html>
+