Skip to content
下载《AI 应用 & AI Agent 开发新范式》电子书 了解构建 AI Agent 和 MCP Server 的一线实践Know more

Standalone Deployment with Docker Compose

Docker Compose is a tool for defining and running multi-container Docker applications. With it, we can use YAML files to deploy Higress gateway standalone without a K8s cluster.

Note

The Standalone mode has not been extensively used in large-scale production environments. It is currently mainly used for local deployment and testing scenarios. For production deployments, the Cloud-Native mode is more recommended.

Installing Higress

When deploying with Docker Compose, the Higress gateway consists of the following services:

  • apiserver: Infrastructure service. Responsible for simulating the K8s API Server.
  • controller: Control plane service one. Responsible for collecting and integrating all configuration data and service lists.
  • pilot: Control plane service two. Responsible for distributing gateway routing data.
  • gateway: Data plane service. Responsible for handling actual gateway requests.
  • console: Higress gateway control console.

Installation Command

Terminal window
curl -fsSL https://higress.io/standalone/get-higress.sh | bash -s -- [DESTINATION] [OPTIONS...]

Installation Parameters

Parameter NameDescriptionDefault Value
DESTINATIONTarget installation directory./higress
-a
—auto-run
Automatically start Higress gateway after configurationNone
-c CONFIG_URL
—config-url CONFIG_URL
Configuration service URL.
- For standalone Nacos service (version not lower than 2.0.0), URL format: nacos://192.168.0.1:8848
- For saving configuration on local disk, URL format: file:///opt/higress/conf
None
—use-builtin-nacosUse built-in Nacos service. Not recommended for production environments. If this parameter is set, there’s no need to set the -c parameterNone
—nacos-ns=NACOS_NAMESPACENacos namespace ID for storing Higress configurationhigress-system
—nacos-username=NACOS_USERNAMEUsername for accessing Nacos. Only used when Nacos has authentication enabledNone
—nacos-password=NACOS_PASSWORDPassword for accessing Nacos. Only used when Nacos has authentication enabledNone
-k KEY
—data-enc-key=KEY
Key for encrypting sensitive configuration data. Must be 32 characters long. If not set, Higress will automatically generate a random key. For cluster deployment, this must be setRandom string
—nacos-port=NACOS_PORTPort on which the built-in NACOS service listens locally on the server8848
—gateway-http-port=GATEWAY_HTTP_PORTHTTP port on which Higress Gateway listens locally on the server80
—gateway-https-port=GATEWAY_HTTPS_PORTHTTPS port on which Higress Gateway listens locally on the server443
—gateway-metrics-port=GATEWAY_METRIC_PORTPort on which Higress Gateway exposes metrics locally on the server15020
—console-port=CONSOLE_PORTPort on which Higress Console listens locally on the server8080
-r
—rerun
Re-execute the configuration process after Higress has been configuredNone
-h
—help
Display help informationNone