Skip to content

Instantly share code, notes, and snippets.

@discoposse
Created November 13, 2015 23:08
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save discoposse/4cb03c3abfa60d1d9a40 to your computer and use it in GitHub Desktop.
Save discoposse/4cb03c3abfa60d1d9a40 to your computer and use it in GitHub Desktop.
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