@@ -61,6 +61,8 @@ Comprehensive guide available at [dockerswarm.rocks](https://dockerswarm.rocks)
61
61
62
62
### Setup Traefik
63
63
64
+ More on [ Traefik] ( https://dockerswarm.rocks/traefik/ )
65
+
64
66
Label the master node to install Traefik
65
67
66
68
``` shell
@@ -84,55 +86,53 @@ Password: $ enter your password here
84
86
Verifying - Password: $ re enter your password here
85
87
```
86
88
87
- Note:
88
-
89
89
Install Traefik in production
90
90
91
91
``` shell
92
92
docker stack deploy -c compose/traefik-host.yml traefik
93
93
```
94
94
95
- Install Traefik in dind
95
+ <details >
96
+
97
+ <summary >Install Traefik in dind</summary >
96
98
97
99
``` shell
98
100
source /workspace/dind-devcontainer/setup-docker-env.sh
99
101
docker stack deploy -c /workspace/compose/traefik-dind.yml traefik
100
102
```
101
103
102
- More on [ Traefik ] ( https://dockerswarm.rocks/traefik/ )
104
+ </ details >
103
105
104
106
### Setup Portainer
105
107
108
+ More on [ portainer] ( https://dockerswarm.rocks/portainer )
109
+
106
110
Label the master node to install portainer
107
111
108
112
``` shell
109
113
docker node update --label-add portainer.portainer-data=true $( docker info -f ' {{.Swarm.NodeID}}' )
110
114
```
111
115
112
- Set portainer domain
113
-
114
- ``` shell
115
- export PORTAINER_DOMAIN=portainer.example.com
116
- # or
117
- export PORTAINER_DOMAIN=portainer.localhost
118
- ```
119
-
120
116
Install Portainer in production
121
117
122
118
``` shell
119
+ # Set domain
120
+ export PORTAINER_DOMAIN=portainer.example.com
121
+ # Install
123
122
docker stack deploy -c compose/portainer.yml portainer
124
123
```
125
124
126
- Install Portainer in dind
125
+ <details >
126
+
127
+ <summary >Install Portainer in dind</summary >
127
128
128
129
``` shell
130
+ # Set domain
131
+ export PORTAINER_DOMAIN=portainer.localhost
132
+ # Install
129
133
docker stack deploy -c /workspace/compose/portainer-dind.yml portainer
130
134
```
131
135
132
- <details >
133
-
134
- <summary >Additional commands for dind only</summary >
135
-
136
136
Initialize portainer
137
137
138
138
``` shell
@@ -162,8 +162,6 @@ http POST \
162
162
163
163
</details >
164
164
165
- More on [ portainer] ( https://dockerswarm.rocks/portainer )
166
-
167
165
### Setup MariaDB
168
166
169
167
- Go to Stacks > Add and create stack called ` mariadb ` .
0 commit comments