This commit is contained in:
pablo 2022-09-07 22:50:53 +02:00
parent f82adf049f
commit e5e29d9b5b
2 changed files with 59 additions and 0 deletions

View file

@ -0,0 +1,12 @@
# Add user to docker group
Adding a user to the docker group allows the user to run docker without the need
of `sudo` permission.
```bash
sudo groupadd docker
sudo usermod -aG docker $USER
```
Log out and in for the change to take effect.

View file

@ -0,0 +1,47 @@
# Navaja Syncthing Deploy
I am going to use this for syncthing backup folders that need to always be
updated in real time, given that my laptop is not reliable since sometimes it's
turned off or has no wifi.
To run syncthing:
1. Create folder `~/synchting`
2. Create a `docker-compose.yaml` file inside with the contents below
```yaml
version: "3"
services:
syncthing:
image: syncthing/syncthing
container_name: syncthing
hostname: navaja-syncthing
environment:
- PUID=1000
- PGID=1000
volumes:
- ~/syncthing/:/var/syncthing
ports:
- 8384:8384 # Web UI
- 22000:22000/tcp # TCP file transfers
- 22000:22000/udp # QUIC file transfers
- 21027:21027/udp # Receive local discovery broadcasts
restart: unless-stopped
```
3. Run with
```bash
cd ~/syncthing
docker-compose up -d
```
4. Open up port 8384 to allow access.
5. Set a password! Otherwise, syncthing is in the absolute open.
Standard should be pablo and noesfacilvivirenunmundocentralizado.
6. Create a syncthing subdomain in porkbun.
7. Modify nginx config to route the subdomain to synchthings port.