Created
March 11, 2022 15:17
-
-
Save matthanley/93ee9481001c9d9e4ae9bbb0bf6df639 to your computer and use it in GitHub Desktop.
Docker Swarm with GlusterFS volumes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/systemd/system/var-lib-docker-volumes.mount | |
# Mounts a Gluster volume on /var/lib/docker/volumes | |
# | |
[Unit] | |
Description=docker volumes | |
Before=docker.service | |
[Mount] | |
What={{gluster_server}}:/{{gluster_volume}} | |
Where=/var/lib/docker/volumes | |
Type=glusterfs | |
Options=defaults,backup-volfile-servers={{gluster_servers}} | |
[Install] | |
RequiredBy=docker.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment