https://github.com/tbowmo/docker-swarm-example
Example of docker swarm setup
https://github.com/tbowmo/docker-swarm-example
Last synced: about 1 year ago
JSON representation
Example of docker swarm setup
- Host: GitHub
- URL: https://github.com/tbowmo/docker-swarm-example
- Owner: tbowmo
- Created: 2019-11-03T20:23:46.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-08-02T17:38:32.000Z (almost 3 years ago)
- Last Synced: 2024-02-13T21:54:44.890Z (over 2 years ago)
- Language: Shell
- Size: 26.4 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
Misc automation stacks and scripts
===
This is an example of my docker-swarm setup, currently having 2 x86_64 nodes
configuration parameters is set in an .env file (copy .env-dist and edit to your likings)
docker bind mounts
---
Most containers are using bind mounts for configuration files etc, and are using `/docker/` directory, I created a glusterfs setup, so /docker/ is replicated accross all hosts in in my swarm setup. This makes it possible for most containers to freely roam the nodes in my swarm.
pinned containers
---
A couple of containers have been pinned to a specific host, as it has more storage available, and instead of making a nfs share, I found it easier to just always deploy the containers to the same node.
Network setup
---