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