DEV Community

Discussion on: Deploying gitlab on Docker Swarm

Collapse
 
danielfrancora profile image
danielfrancora

Hi,

Sorry for the newbie question but, how do I change the volumes you created using nfs to a local driver path?
I'm using GlusterFS as a fileshare and I'm having some trouble to put your docker-compose to work because the volume mount type.

I've tryed:
grafana_data:
driver: local
driver_opts:
device: "/opt/local/docker/docker-data/gitlab/grafana"
type: none
o: bind

But I get error on mount.

Can you help?

Thx in advance

Collapse
 
livioribeiro profile image
Livio Ribeiro

Does the directory "/opt/local/docker/docker-data/gitlab/grafana" already exist? In my tests, I could only make it work when the directory to be mounted already exists on the host.

Collapse
 
danielfrancora profile image
danielfrancora

Yes, the directory exists. I created all the directory structure you pointed in the beginning.