remove docker compose file 3.2 Volume LONG SYNTAX

This commit is contained in:
llitfkitfk 2017-11-03 16:40:00 +08:00
parent b699d0491a
commit 0fcf484433
1 changed files with 4 additions and 10 deletions

View File

@ -1,4 +1,4 @@
version: '3.2'
version: '3.1'
volumes:
prometheus_data: {}
@ -39,15 +39,9 @@ services:
node-exporter:
image: prom/node-exporter
volumes:
- type: bind
source: /proc
target: /host/proc
- type: bind
source: /sys
target: /host/sys
- type: bind
source: /
target: /rootfs
- /proc:/host/proc
- /sys:/host/sys
- /:/rootfs
command:
- '--path.procfs=/host/proc'
- '--path.sysfs=/host/sys'