From 18ab013f621003a7188630fc0cade27c1cfdc3a3 Mon Sep 17 00:00:00 2001 From: michivonah Date: Fri, 3 May 2024 21:34:28 +0200 Subject: [PATCH] add more information to readme file --- README.md | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c9aa03f..2f26a82 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,29 @@ -# docker -A collection of docker compose files +# Docker +A collection of docker compose files in a general form + +You can use the most of the services with traefik as reverse proxy by adding the following lines to your docker-compose file: +```yaml +labels: + - "traefik.enable=true" + - "traefik.http.routers..entrypoints=http, https" + - "traefik.http.routers..rule=Host(``)" + - "traefik.http.routers..tls=true" + - "traefik.http.routers..tls.certresolver=production" + - "traefik.docker.network=traefik_default" +networks: + - traefik + - +``` + +```yaml +networks: + : + external: false + traefik: + name: traefik_default + external: true +``` + +Please not that you must replace `` with a name for your service and `` with the domain name pointing to your server for this service. Then traefik will automatically request a SSL certificate and deploy your application. If you shut down the service, traefik will also automatically remove the proxy rules created for this service. You don't have to care about any further configuration. + +> If you have questions free to open a issue. :) \ No newline at end of file