@@ -4,7 +4,7 @@ This docker stack will run many services (Traefik (with auth), Socat, Portainer,
4
4
5
5
## Start here
6
6
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*
8
8
3 . Copy-paste:
9
9
10
10
#### Stable setup (recommended)
@@ -43,8 +43,11 @@ cd ${ENV_MONOREPO} && \
43
43
./runup.sh;
44
44
```
45
45
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.
47
47
48
+ #### example
49
+
50
+ ![ 2019-08-01_16h56] ( https://user-images.githubusercontent.com/6694151/62326965-5ca8f880-b47d-11e9-9416-2139d514fc64.gif )
48
51
49
52
## See your stacks
50
53
@@ -61,33 +64,33 @@ toolwebapp 4 Swarm
61
64
## See your services
62
65
63
66
```
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
75
78
```
76
79
77
80
## Confirm that your services (containers) are running
78
81
79
82
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.
81
84
82
85
83
86
#### Full URL example
84
87
85
88
```
86
89
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
91
94
```
92
95
93
96
The container for the first URL is named ` home ` .
@@ -97,7 +100,7 @@ The container for the first URL is named `home`.
97
100
- ** /** = [ caddy] ( https://github.com/pascalandy/caddy-securityheader )
98
101
- ** /who1** = [ caddy] ( https://github.com/pascalandy/caddy-securityheader )
99
102
- ** /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/ )
101
104
102
105
For /who1 and /who2 you will see the container's Ids (5fe91baf7a3a & 78a0c7287df1) in this example
103
106
@@ -139,7 +142,7 @@ Insert this string in your `.configs/traefik.toml`.
139
142
140
143
#### Traefik version
141
144
142
- In ` toolproxy.yml ` look for something like ` traefik:1.7.6 ` .
145
+ In ` toolproxy.yml ` look for something like ` traefik:1.7.12 ` .
143
146
144
147
In some mono-repo, I ** my own traefik image** . Feel free to use the official images. It will not break anything.
145
148
0 commit comments