Skip to content

Instantly share code, notes, and snippets.

@nilsmeyer
Created March 25, 2019 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nilsmeyer/1e239ce001a9f71708ba31362a5bd360 to your computer and use it in GitHub Desktop.
Save nilsmeyer/1e239ce001a9f71708ba31362a5bd360 to your computer and use it in GitHub Desktop.
volume configuration example
volumes:
docker:
type: xfs
mount: /srv/docker
mount_options : defaults
mkfs_options: -s size=4096 -b size=4096 -m crc=1,finobt=1,rmapbt=1,reflink=1 -l size=128m -i sparse=1
devices:
- 'volume:docker-enc'
docker-enc:
type: luks2
cipher: aes-xts-plain64
hash: sha512
pbdkf: argon2i
bits: 256
passfile: '/root/.luks/docker-enc'
kms: 'alias/luks'
devices:
- 'volume:docker-md'
docker-md:
type: md
level: 0
chunk: 256k
devices:
- 'ebs:vol-063195f702aef2e38'
- 'ebs:vol-0be918e0a0e889de8'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment