0861.html 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Running Element Web - Browser Based Matrix/Synapse Client - 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,Chat,Container,Containerization,Docker How To,Docker,Docker Installation Tutorial,Docker Simplified,Docker Tutorial,Element,Encrypted Communication,End To End Encrpytion,Free Software,Getting Started With Docker,Instant Messaging,Secure Chat,Secure Communication,Self-hosted,Synapse,Ubuntu,How To,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Running Element Web - Browser Based Matrix/Synapse Client - in Docker">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="02/15/2023 08:22:33 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>Running Element Web - Browser Based Matrix/Synapse Client - in Docker</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <h2>What is Element?</h2>
  26. <blockquote><em>Element (formerly known as Vector and Riot) is a Matrix web client built using the Matrix React SDK. -<a href="https://github.com/vector-im/element-web" target="_blank">https://github.com/vector-im/element-web</a></em></blockquote>
  27. <h2>Installing Docker</h2>
  28. <ol>
  29. <li>Log into the Linux host and run the following commands in a terminal window
  30. <div class="codeBlock"># install prerequisites<br />
  31. sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg-agent -y<br />
  32. # add docker gpg key<br />
  33. 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 />
  34. # add docker software repository<br />
  35. 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 />
  36. # install docker<br />
  37. sudo apt install docker-ce docker-compose containerd.io -y<br />
  38. # enable and start docker service<br />
  39. sudo systemctl enable docker &amp;&amp; sudo systemctl start docker<br />
  40. # add the current user to the docker group<br />
  41. sudo usermod -aG docker $USER<br />
  42. # reauthenticate for the new group membership to take effect<br />
  43. su - $USER</div>
  44. </li>
  45. </ol>
  46. <h2>Running Element Web</h2>
  47. <ol>
  48. <li>Continue with the following commands in a terminal window
  49. <div class="codeBlock"># create working directories<br />
  50. mkdir ~/docker/element -p<br />
  51. # download example config<br />
  52. wget -O ~/docker/element/config.json https://raw.githubusercontent.com/vector-im/element-web/develop/config.sample.json<br />
  53. # edit config.json if needed<br />
  54. nano ~/docker/element/config.json<br />
  55. # run the element web container<br />
  56. docker run --name elementweb -d -v ~/docker/element/config.json:/app/config.json -p 8080:80 --restart unless-stopped vectorim/element-web</div>
  57. </li>
  58. <li>Open a web browser and navigate to http://DNSorIP:8080</li>
  59. </ol>
  60. <p>Documentation: <a href="https://hub.docker.com/r/vectorim/element-web" target="_blank">https://hub.docker.com/r/vectorim/element-web</a></p> </div>
  61. </div>
  62. </body>
  63. </html>