Skip to content

Commit 3dcdedc

Browse files
committed
Cleaner instructions
Signed-off-by: Pascal Andy <pascal@firepress.org>
1 parent e37ee07 commit 3dcdedc

File tree

1 file changed

+23
-20
lines changed

1 file changed

+23
-20
lines changed

traefik_stack5/README.md

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This docker stack will run many services (Traefik (with auth), Socat, Portainer,
44

55
## Start here
66
1. Go to http://labs.play-with-docker.com/
7-
2. Create *one instance*. Wait for the node to provision
7+
2. Create *one instance*
88
3. Copy-paste:
99

1010
#### Stable setup (recommended)
@@ -43,8 +43,11 @@ cd ${ENV_MONOREPO} && \
4343
./runup.sh;
4444
```
4545

46-
This will run `play-with-docker-setup.sh` and `runup.sh`. These scripts will do the hard of deploying the stacks for us.
46+
These scripts will do the hard of deploying the stacks for us.
4747

48+
#### example
49+
50+
![2019-08-01_16h56](https://user-images.githubusercontent.com/6694151/62326965-5ca8f880-b47d-11e9-9416-2139d514fc64.gif)
4851

4952
## See your stacks
5053

@@ -61,33 +64,33 @@ toolwebapp 4 Swarm
6164
## See your services
6265

6366
```
64-
docker service ls
65-
66-
ID NAME MODE REPLICAS IMAGE PORTS
67-
ckqzv21zr7ox toolgui_agent global 1/1 portainer/agent:latest
68-
pop0b3w13byv toolgui_portainer replicated 1/1 portainer/portainer:latest
69-
q7sj4lhtvozp toolproxy_socat replicated 1/1 devmtl/socatproxy:1.1
70-
lb3ztruy38lp toolproxy_traefik replicated 1/1 traefik:1.7.6-alpine *:80->80/tcp, *:443->443/tcp, *:8080->8080/tcp
71-
dl1mxwuwq1v5 toolwebapp_home replicated 2/2 abiosoft/caddy:0.11.1-no-stats
72-
72th62aghchk toolwebapp_who1 replicated 2/2 nginx:1.15-alpine
73-
ajdrevkyolv1 toolwebapp_who2 replicated 2/2 emilevauge/whoami:latest
74-
x3nop1l52lok toolwebapp_who3 replicated 2/2 emilevauge/whoami:latest
67+
$ docker service ls
68+
69+
ID NAME MODE REPLICAS IMAGE PORTS
70+
xjdsq3gxd59y toolgui_agent global 1/1 portainer/agent:latest
71+
0h375hmmnelo toolgui_portainer replicated 1/1 portainer/portainer:latest
72+
xim07ahqctsp toolproxy_socat replicated 1/1 devmtl/socatproxy:1.2
73+
y249kaecel8e toolproxy_traefik replicated 1/1 traefik:1.7.12 *:80->80/tcp, *:443->443/tcp, *:8080->8080/tcp
74+
s0061fdhvv6o toolwebapp_home replicated 1/1 abiosoft/caddy:1.0.1-no-stats
75+
ocpk5l6yg2gt toolwebapp_who1 replicated 1/1 nginx:1.15-alpine
76+
raq5czrlhrmb toolwebapp_who2 replicated 1/1 emilevauge/whoami:latest
77+
66b1rduru5k9 toolwebapp_who3 replicated 1/1 emilevauge/whoami:latest
7578
```
7679

7780
## Confirm that your services (containers) are running
7881

7982
1. When you see that all services are deployed, click on `80` to see the static landing page.
80-
2. From the same URL generated by play-with-docker, in the address bar of your browser, add `/who1/` or `/who2/` or `/who3/` or `/portainer/` to access other services.
83+
2. From the same URL generated by play-with-docker, in the address bar of your browser, add `/who1` or `/who2` or `/who3` or `/portainer` to access other services.
8184

8285

8386
#### Full URL example
8487

8588
```
8689
http://pwd10-0-7-3-80.host1.labs.play-with-docker.com/
87-
http://pwd10-0-7-3-80.host1.labs.play-with-docker.com/who1/
88-
http://pwd10-0-7-3-80.host1.labs.play-with-docker.com/who2/
89-
http://pwd10-0-7-3-80.host1.labs.play-with-docker.com/who3/
90-
http://pwd10-0-7-3-80.host1.labs.play-with-docker.com/portainer/
90+
http://pwd10-0-7-3-80.host1.labs.play-with-docker.com/who1
91+
http://pwd10-0-7-3-80.host1.labs.play-with-docker.com/who2
92+
http://pwd10-0-7-3-80.host1.labs.play-with-docker.com/who3
93+
http://pwd10-0-7-3-80.host1.labs.play-with-docker.com/portainer
9194
```
9295

9396
The container for the first URL is named `home`.
@@ -97,7 +100,7 @@ The container for the first URL is named `home`.
97100
- **/** = [caddy](https://github.com/pascalandy/caddy-securityheader)
98101
- **/who1** = [caddy](https://github.com/pascalandy/caddy-securityheader)
99102
- **/who2** = [whoami](https://hub.docker.com/r/emilevauge/whoami/)
100-
- **/portainer/** = [portainer](https://hub.docker.com/r/portainer/portainer/)
103+
- **/portainer** = [portainer](https://hub.docker.com/r/portainer/portainer/)
101104

102105
For /who1 and /who2 you will see the container's Ids (5fe91baf7a3a & 78a0c7287df1) in this example
103106

@@ -139,7 +142,7 @@ Insert this string in your `.configs/traefik.toml`.
139142

140143
#### Traefik version
141144

142-
In `toolproxy.yml` look for something like `traefik:1.7.6`.
145+
In `toolproxy.yml` look for something like `traefik:1.7.12`.
143146

144147
In some mono-repo, I **my own traefik image**. Feel free to use the official images. It will not break anything.
145148

0 commit comments

Comments
 (0)