diff --git a/README.md b/README.md index b56991d..c5c3e6c 100644 --- a/README.md +++ b/README.md @@ -89,8 +89,6 @@ sudo apt remove docker docker-engine docker.io containerd runc sudo rm /etc/apt/sources.list.d/docker.list ``` - - ## 📦 Adding a new service 1. **Create Service Directory:** Inside your repository, create a new directory under `/service` for your new self-hosted service. @@ -105,6 +103,37 @@ make upload-{service_name} ``` Replace `{service_name}` with the name of your service directory. This command will sync the configurations to the specified server path using the variables defined in your `.env` file. +## 📦 Make service publicly available + +Add the following labels: + +``` +labels: + - "traefik.enable=true" + - "traefik.http.routers.gitea.rule=Host(${HOST})" + - "traefik.http.routers.gitea.entrypoints=websecure" + - "traefik.http.routers.gitea.tls.certresolver=myresolver" + - "traefik.http.services.gitea.loadbalancer.server.port=3000" + - "traefik.docker.network=traefik_network" +``` + +Set `HOST` in your `.env` file. + +Add your service to the `traefik_network` network: + +``` +networks: + - traefik_network +``` + +Add: + +``` +networks: + traefik_network: + external: true +``` + ## 🛠️ Storage ### 📦 Mounting a New Volume Using Hetzner's Storage Box