docker_cluster
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
docker_cluster [2024/10/21 12:55] – neoon | docker_cluster [2024/10/21 15:29] (current) – neoon | ||
---|---|---|---|
Line 97: | Line 97: | ||
listen-addr will force swarm to bind to your local VPN | listen-addr will force swarm to bind to your local VPN | ||
- | **16**. Promote the other Nodes to archive 100% True HA | + | **16**. Check the Cluster |
+ | docker node ls | ||
+ | |||
+ | **17**. Promote the other Nodes to archive 100% True HA | ||
docker node promote node2 | docker node promote node2 | ||
docker node promote node3 | docker node promote node3 | ||
| | ||
- | **17**. Deploy your first service \\ | + | **18**. Deploy your first service \\ |
In my case it was a ZNC bouncer. \\ | In my case it was a ZNC bouncer. \\ | ||
Had to run the docker container normally to generate the config files. \\ | Had to run the docker container normally to generate the config files. \\ | ||
Line 109: | Line 112: | ||
Lets deploy the service. | Lets deploy the service. | ||
docker service create --mount type=bind, | docker service create --mount type=bind, | ||
+ | The service will get exposed on port 1025 on all nodes. | ||
| | ||
- | **18**. If you run this, on any node. | + | **19**. If you run this, on any node. |
docker node ps $(docker node ls -q) | docker node ps $(docker node ls -q) | ||
| | ||
You should be able to check your container status. | You should be able to check your container status. | ||
- | **19**. When you reboot the node with your container, the service should be restored in about 60s. | + | **20**. When you reboot the node with your container, the service should be restored in about 60s. |
docker_cluster.1729515330.txt.gz · Last modified: 2024/10/21 12:55 by neoon