version: "3.7" services: es: image: harbor.colben.cn/general/elasticsearch:6 container_name: es restart: "on-failure" stop_grace_period: 5m privileged: true environment: _CONF_network.host: 127.0.0.1 _CONF_http.port: 9200 _CONF_transport.port: 9300 network_mode: host volumes: - type: bind source: ./es/config target: /opt/es/config - type: bind source: ./es/data target: /opt/es/data - type: bind source: ./es/logs target: /opt/es/logs - type: bind source: ./es/plugins target: /opt/es/plugins - type: bind source: ./es/offline-plugins target: /opt/es/offline-plugins