Skip to content

Instantly share code, notes, and snippets.

@matthanley
Created March 11, 2022 15:17
Show Gist options
  • Save matthanley/93ee9481001c9d9e4ae9bbb0bf6df639 to your computer and use it in GitHub Desktop.
Save matthanley/93ee9481001c9d9e4ae9bbb0bf6df639 to your computer and use it in GitHub Desktop.
Docker Swarm with GlusterFS volumes
# /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