From c894e17a5ad687a659422c90c5b9586cffc74819 Mon Sep 17 00:00:00 2001 From: Cris Mathew Date: Wed, 28 Feb 2024 17:04:59 +0300 Subject: [PATCH] Update traefik/readme.md --- traefik/readme.md | 47 ++++++++++++++++++++++++++++++++++++----------- 1 file changed, 36 insertions(+), 11 deletions(-) diff --git a/traefik/readme.md b/traefik/readme.md index 9f13f72..fd06eca 100644 --- a/traefik/readme.md +++ b/traefik/readme.md @@ -1,22 +1,47 @@ +First create a docker network called "proxy" usig the following command: +``` +docker network create proxy +``` +This is the network that traefik and all other containers that need to be automatically configured in traefik should use. + Make directories in your homefolder like so: - ~/traefik - compose.yml - data - - acme.json # make sure to change permissions of this file with chmod 600 acme.json + - acme.json # make sure to change permissions of this file with ``` chmod 600 acme.json ``` - config.yml - traefik.yml Use mkdir to make the folders and touch to create the json and yml files Basically: -mkdir traefik -cd traefik -touch compose.yml -mkdir data -cd data -touch acme.json -chmod 600 acme.json -touch config.yml -touch traefik.yml -The contents to put inside those files are given here. Except for acme.json which will be automatically generated. \ No newline at end of file +``` +mkdir traefik +``` +``` +cd traefik +``` +``` +touch compose.yml +``` +``` +mkdir data +``` +``` +cd data +``` +``` +touch acme.json +``` +``` +chmod 600 acme.json +``` +``` +touch config.yml +``` +``` +touch traefik.yml +``` + +The contents to put inside those files are given here. Except for acme.json, which will be automatically generated. \ No newline at end of file