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

View File

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