Last active
October 17, 2019 19:14
-
-
Save dboc/a044353b379ce53c82d9dd7211726cd8 to your computer and use it in GitHub Desktop.
Blog - Learning: Docker Compose
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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