123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <!DOCTYPE html>
- <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>Host Your Own Reddit Alternative with Lemmy in Docker</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <meta charset="UTF-8">
- <meta name="keywords" content="Lemmy,Reddit,Self-Hosted,Docker,Container,Linux,Link Aggregator,How To,Tutorial,i12bretro">
- <meta name="author" content="i12bretro">
- <meta name="description" content="Host Your Own Reddit Alternative with Lemmy in Docker">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="revised" content="10/26/2022 09:13:22 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>Host Your Own Reddit Alternative with Lemmy in Docker</h1>
- </div>
- <div></div>
- <div id="content">
- <h2>What is Lemmy?</h2>
- <blockquote><em>Lemmy is an open-source, federated link aggregator similar to Reddit and built with Rust.</em></blockquote>
- <ol>
- <li>Log into the host device</li>
- <li>Run the following commands in terminal
- <div class="codeBlock"># install docker and docker-compose<br />
- sudo apt install docker docker-compose docker.io<br />
- # create a working directory<br />
- sudo mkdir lemmy && cd lemmy/<br />
- # download the container files<br />
- sudo wget https://raw.githubusercontent.com/LemmyNet/lemmy/main/docker/prod/docker-compose.yml<br />
- sudo wget https://raw.githubusercontent.com/LemmyNet/lemmy/main/docker/lemmy.hjson<br />
- sudo wget https://raw.githubusercontent.com/LemmyNet/lemmy/main/docker/iframely.config.local.js<br />
- # create pictrs directory<br />
- sudo mkdir -p volumes/pictrs<br />
- sudo chown -R 991:991 volumes/pictrs<br />
- # edit docker-compose.yml<br />
- sudo nano docker-compose.yml</div>
- </li>
- <li>Scroll down to the POSTGRES_PASSWORD line and enter a secure password</li>
- <li>Press CTRL+O, Enter, CTRL+X to write the changes to docker-compose.yml</li>
- <li>Continue with the following command
- <div class="codeBlock">sudo nano lemmy.hjson</div>
- </li>
- <li>Press CTRL + W and search for database</li>
- <li>Scroll down to the database password and update the value to match the value set in docker-compose.yml earlier</li>
- <li>Press CTRL+O, Enter, CTRL+X to write the changes to lemmy.hjson</li>
- <li>Run the following command to start the Lemmy Docker container
- <div class="codeBlock">sudo docker-compose up -d</div>
- </li>
- <li>Open a web browser and navigate to http://DNSorIP:1235</li>
- <li>Log into Lemmy with the username and password lemmy</li>
- </ol> </div>
- </div>
- </body>
- </html>
-
|