Skip to content

Instantly share code, notes, and snippets.

@dboc
Last active October 17, 2019 19:14
Show Gist options
  • Select an option

  • Save dboc/a044353b379ce53c82d9dd7211726cd8 to your computer and use it in GitHub Desktop.

Select an option

Save dboc/a044353b379ce53c82d9dd7211726cd8 to your computer and use it in GitHub Desktop.
Blog - Learning: Docker Compose
version: '2'
volumes:
data1:
driver: rancher-nfs
driver_opts:
host: 10.0.0.2
mntOptions: nfsvers=4
exportBase: /data1share
onRemove: retain
data2:
driver: rancher-nfs
driver_opts:
host: 10.0.0.2
mntOptions: nfsvers=4
exportBase: /data2share
onRemove: retain
services:
minio:
image: minio/minio:latest
environment:
MINIO_ACCESS_KEY: minio1234
MINIO_SECRET_KEY: minio1234
stdin_open: true
volumes:
- data1: /data/data1
- data2: /data/data2
tty: true
ports:
- 9089:9000/tcp
command:
- gateway
- nas
- /data
labels:
io.rancher.container.pull_image: always
io.rancher.scheduler.global: 'true'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment