Update traefik/readme.md
This commit is contained in:
+36
-11
@@ -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:
|
Make directories in your homefolder like so:
|
||||||
- ~/traefik
|
- ~/traefik
|
||||||
- compose.yml
|
- compose.yml
|
||||||
- data
|
- 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
|
- config.yml
|
||||||
- traefik.yml
|
- traefik.yml
|
||||||
|
|
||||||
Use mkdir to make the folders and touch to create the json and yml files
|
Use mkdir to make the folders and touch to create the json and yml files
|
||||||
|
|
||||||
Basically:
|
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.
|
```
|
||||||
|
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.
|
||||||
Reference in New Issue
Block a user