File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,20 +4,48 @@ Cloud-native networking stack that just works.
44
55## Setup
66
7- 1 . Clone https://github.com/Nuxify/traefik-setup.git
7+ 1 . Clone:
8+ > < https://github.com/Nuxify/traefik-setup.git >
89
9- 2 . Create ` ./data/acme.json ` and add permission (chmod 600)
10+ 2 . Create ` ./data/acme.json ` :
1011
11- 3 . Create ` .env ` (from .env.example) and provide correct values
12+ ``` bash
13+ touch ./data/acme.json
14+ ```
1215
13- 4 . For ` AUTH_HTPASSWD ` , run ` echo $(htpasswd -nb <username> <password>) ` (default is user=sudo, password=2m4Bf48k2JbO5bnh26uwoeXa0dZ)
16+ 3 . Set read and write permission:
1417
15- 5 . Create the docker network: ` docker network create proxy `
18+ ``` bash
19+ chmod 600 ./data/acme.json
20+ ```
1621
17- 6 . Up the network with ` make up `
22+ 4 . Create ` .env ` (from .env.example) and provide correct values:
1823
19- Refer to this good guide: https://medium.com/@containeroo/traefik-2-0-docker-a-simple-step-by-step-guide-e0be0c17cfa5
24+ ``` bash
25+ cp .env.example .env
26+ ```
2027
21- Traefik documentation: https://doc.traefik.io/traefik/
28+ 5 . For ` AUTH_HTPASSWD ` run:
29+
30+ ``` bash
31+ echo $( htpasswd -nb < username> < password> )
32+ # (default is user=sudo password=2m4Bf48k2JbO5bnh26uwoeXa0dZ)
33+ ```
34+
35+ 6 . Create the docker network:
36+
37+ ``` bash
38+ docker network create proxy
39+ ```
40+
41+ 7 . Up the network with:
42+
43+ ``` bash
44+ make up
45+ ```
46+
47+ Refer to this good guide: < https://medium.com/@containeroo/traefik-2-0-docker-a-simple-step-by-step-guide-e0be0c17cfa5 >
48+
49+ Traefik documentation: < https://doc.traefik.io/traefik/ >
2250
2351Made with ❤️ at [ Nuxify] ( https://nuxify.tech )
Original file line number Diff line number Diff line change 1- version : " 3.3"
2-
31services :
42 traefik :
5- image : traefik:v2.11.8
3+ image : traefik:v2.11.36
64 container_name : traefik
75 restart : unless-stopped
86 security_opt :
You can’t perform that action at this time.
0 commit comments