diff --git a/add_user_to_docker_group.md b/add_user_to_docker_group.md new file mode 100644 index 0000000..4211d0c --- /dev/null +++ b/add_user_to_docker_group.md @@ -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. \ No newline at end of file diff --git a/navaja_syncthing_deploy.md b/navaja_syncthing_deploy.md new file mode 100644 index 0000000..01fe832 --- /dev/null +++ b/navaja_syncthing_deploy.md @@ -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. \ No newline at end of file