Skip to content

Instantly share code, notes, and snippets.

@stephenchew
Created December 31, 2024 15:49
Show Gist options
  • Select an option

  • Save stephenchew/218d93d3c062e8878bd479056fce3943 to your computer and use it in GitHub Desktop.

Select an option

Save stephenchew/218d93d3c062e8878bd479056fce3943 to your computer and use it in GitHub Desktop.
All things about docker-compose

Docker compose

Specify a path for docker volume

docker-compose.yaml

services:
  abc:
    ...
    volumes:
      - conf-data:/var/lib/grafana

volumes:
  conf-data:
    driver: local
    driver_opts:
      type: none
      o: bind
      device: /path/to/folder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment