version: "3.7" services: es: image: harbor.colben.cn/general/elasticsearch:7 container_name: es restart: "on-failure" stop_grace_period: 5m privileged: true environment: ES_JAVA_OPTS: "-Xms8g -Xmx8g" _CONF_network.host: 127.0.0.1 _CONF_http.port: 9200 _CONF_transport.port: 9300 _CONF_discovery.seed_hosts: '[127.0.0.1]' _CONF_discovery.type: single-node _CONF_xpack.security.enabled: "true" 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