From 537fb3713e42abdc5c5d8f2a81e59f1ec0ca2ac5 Mon Sep 17 00:00:00 2001 From: Digital Studium Date: Sat, 25 Mar 2023 14:52:59 +0000 Subject: [PATCH] Add readme --- README.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..40f2b74 --- /dev/null +++ b/README.md @@ -0,0 +1,36 @@ +## Prerequisites + +Before you begin, you will need: + +- A server running Ubuntu 18.04 or later +- `sudo` privileges +- An internet connection + +## Steps + +1. Update the repository cache: + +sudo apt update + + +2. Install the necessary packages (`nginx-light`, `certbot`, `python3-certbot-nginx`, and `docker.io`): + +sudo apt install -y nginx-light certbot python3-certbot-nginx docker.io + + +3. Add the current user to the `docker` group and switch to this group: + +sudo usermod -a -G docker $USER newgrp docker + + +4. Initialize Docker Swarm mode if it has not yet been initialized: + +docker swarm init || true + + +5. Deploy the Gitea application using Docker Swarm: + +docker stack deploy -c stack.yaml gitea + + +Note: The `stack.yaml` file contains the configuration for the Gitea application, including the Docker image to use, the ports to expose, and any environment variables to set.