In this "how to" tutorial you are going to set up your own Synapse Admin instance.
First we are going to uninstall any old docker engine and install the latest (can be skipped), then we'll create/edit the docker-compose file, and check all the containers and the setup.
sudo apt-get purge docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin docker-ce-rootless-extras
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh ./get-docker.sh --dry-run
sudo sh ./get-docker.sh
Paste the content inside this file.
## Optionally define your matrix url
### Change to your matrix network
## left side is host side - right side is container side and should not be changed
# Change to your matrix network
Edit the parts with 'changeMe.' and of course networks and any other parts you want to modify, such as the ports exposed on the host machine.
Make sure that you have changed all the 'changeMe.' parts. Now you are good to go.
With docker-compose, it's fairly easy to set everything up.
docker compose up -d
Deployment should take a maximum of 2 minutes to be up and running.
docker ps -a
Now you can check your port 80 (or another port if you have changed the left side) with your browser at localhost:80, or serverIP:80 if you run it on a server in a different network or your provided URL inside the docker compose-file.
If you cannot reach the URL after few minutes (1 to 2), you should check your ufw/ufw-docker to expose the ports through the firewall or check your proxy manager if you use one.
Congratulations, you have created your own synapse-admin in just a few minutes.
As you have seen, setting up synapse-admin is quite simple and straightforward.
Copyright (c) 2021 netcup
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
By making a contribution to this project, I certify that:
The contribution was created in whole or in part by me and I have the right to submit it under the license indicated in the file; or
The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same license (unless I am permitted to submit under a different license), as indicated in the file; or
The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it.
I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the license(s) involved.