Skip to content

Commit cde1341

Browse files
committed
docs: cleanup docker swarm frappe apps docs
1 parent 34d790e commit cde1341

File tree

1 file changed

+17
-19
lines changed

1 file changed

+17
-19
lines changed

docs/docker-swarm.md

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ Comprehensive guide available at [dockerswarm.rocks](https://dockerswarm.rocks)
6161

6262
### Setup Traefik
6363

64+
More on [Traefik](https://dockerswarm.rocks/traefik/)
65+
6466
Label the master node to install Traefik
6567

6668
```shell
@@ -84,55 +86,53 @@ Password: $ enter your password here
8486
Verifying - Password: $ re enter your password here
8587
```
8688

87-
Note:
88-
8989
Install Traefik in production
9090

9191
```shell
9292
docker stack deploy -c compose/traefik-host.yml traefik
9393
```
9494

95-
Install Traefik in dind
95+
<details>
96+
97+
<summary>Install Traefik in dind</summary>
9698

9799
```shell
98100
source /workspace/dind-devcontainer/setup-docker-env.sh
99101
docker stack deploy -c /workspace/compose/traefik-dind.yml traefik
100102
```
101103

102-
More on [Traefik](https://dockerswarm.rocks/traefik/)
104+
</details>
103105

104106
### Setup Portainer
105107

108+
More on [portainer](https://dockerswarm.rocks/portainer)
109+
106110
Label the master node to install portainer
107111

108112
```shell
109113
docker node update --label-add portainer.portainer-data=true $(docker info -f '{{.Swarm.NodeID}}')
110114
```
111115

112-
Set portainer domain
113-
114-
```shell
115-
export PORTAINER_DOMAIN=portainer.example.com
116-
# or
117-
export PORTAINER_DOMAIN=portainer.localhost
118-
```
119-
120116
Install Portainer in production
121117

122118
```shell
119+
# Set domain
120+
export PORTAINER_DOMAIN=portainer.example.com
121+
# Install
123122
docker stack deploy -c compose/portainer.yml portainer
124123
```
125124

126-
Install Portainer in dind
125+
<details>
126+
127+
<summary>Install Portainer in dind</summary>
127128

128129
```shell
130+
# Set domain
131+
export PORTAINER_DOMAIN=portainer.localhost
132+
# Install
129133
docker stack deploy -c /workspace/compose/portainer-dind.yml portainer
130134
```
131135

132-
<details>
133-
134-
<summary>Additional commands for dind only</summary>
135-
136136
Initialize portainer
137137

138138
```shell
@@ -162,8 +162,6 @@ http POST \
162162

163163
</details>
164164

165-
More on [portainer](https://dockerswarm.rocks/portainer)
166-
167165
### Setup MariaDB
168166

169167
- Go to Stacks > Add and create stack called `mariadb`.

0 commit comments

Comments
 (0)