Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
GlusterFS Docker Compose sample
glusterfs-server:
image: rancher/glusterfs:v0.1.3
devices:
- /dev/fuse:/dev/fuse:rwm
cap_add:
- SYS_ADMIN
volumes_from:
- glusterfs-data
labels:
io.rancher.container.hostname_override: container_name
io.rancher.sidekicks: glusterfs-peer,glusterfs-data,glusterfs-volume-create
command: "glusterd -p /var/run/gluster.pid -N"
glusterfs-peer:
image: rancher/glusterfs:v0.1.3
net: 'container:glusterfs-server'
volumes_from:
- glusterfs-data
labels:
io.rancher.container.hostname_override: container_name
command: /opt/rancher/peerprobe.sh
glusterfs-data:
image: rancher/glusterfs:v0.1.3
command: /bin/true
volumes:
- /var/run
labels:
io.rancher.container.hostname_override: container_name
io.rancher.container.start_once: true
glusterfs-volume-create:
image: rancher/glusterfs:v0.1.3
command: /opt/rancher/replicated_volume_create.sh
net: 'container:glusterfs-server'
volumes_from:
- glusterfs-data
labels:
io.rancher.container.hostname_override: container_name
io.rancher.container.start_once: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.