From a98bf37445ca6f9cfbd38ffc66190491c8255725 Mon Sep 17 00:00:00 2001 From: nune Date: Thu, 12 Dec 2024 23:53:26 +0000 Subject: [PATCH] Add README.md --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..626a5ac --- /dev/null +++ b/README.md @@ -0,0 +1,22 @@ +## How to use +You need to install docker-compose. Also Caddy if you need a reverse proxy. +Generally with these, you'll make a folder for the service you wanna host, make a file called compose.yml, copy the contents in, modify accordingly, and `docker compose up -d` these up. +## Things to keep in mind +The first four-five-digit number in ports is the port for your machine, the second after the `:` is the port for the container. Don't change the second number unless there's a configuration setting that allows you to modify like so. +Use a server in your home properly configured, or a VPS. I personally recommend Webdock for a VPS. +You don't need to do any steps to install dependencies for these services other than docker-compose, docker containers do that for you inside the container. +## Basic reverse proxy +This will work fine for most things assuming the URL is configured in `environment:` section/config if needed. +Install caddy with the following command after `apt-get update` and `apt-get upgrade`: +``` +apt-get install caddy +``` +Once installed, make a folder and make a file named Caddyfile. Write this in it with nano, and replace accordingly. The number can be replaced with the machine port (again, first number under ports section). +Make sure the domain has a DNS record with the server IP. +``` +example.com { + reverse_proxy localhost:7825 +} +``` +Then type `caddy reload` or `caddy start`. +Wait a bit, and your service should come up. \ No newline at end of file