Skip to content
OpenClaw 不踩坑恶意 Skills ,企业需 Skills Registry:Nacos 3.2 发布Know more

Standalone Deployment

Nacos Standalone Mode

1. Release Package Deployment

1.1. Deployment Steps

In Quick Start, the built-in Derby database is used to quickly deploy Nacos in standalone mode. You can refer to that document to deploy Nacos standalone mode with Derby.

1.2. Advanced Configuration

Nacos provides rich configuration items that help you tune Nacos performance and control Nacos features, such as authentication, monitoring, databases, connections, and logs. For details, see System Parameters.

2. Docker Deployment

2.1. Deployment Steps

In Quick Start Docker, Docker is used with the built-in Derby database to quickly deploy Nacos in standalone mode. You can refer to that document to deploy Nacos standalone mode with Derby.

2.2. Advanced Configuration

If you need many custom configurations, you can configure them by specifying System Parameters - Image Environment Variables. For example, to enable authentication:

Terminal window
docker run --name nacos-standalone-auth -e MODE=standalone -e NACOS_AUTH_ENABLE=true -e NACOS_AUTH_TOKEN=${customToken} -e NACOS_AUTH_IDENTITY_KEY=${customKey} -e NACOS_AUTH_IDENTITY_VALUE=${customValue} -p 8848:8848 -d -p 9848:9848 nacos/nacos-server:latest

You can also mount the application.properties file to import more complex custom configurations into the Nacos container. This method is strongly recommended for production environments. Example:

Terminal window
docker run --name nacos-standalone -e MODE=standalone -v /path/application.properties:/home/nacos/conf/application.properties -p 8848:8848 -d -p 9848:9848 nacos/nacos-server:latest

If this still cannot meet your customization requirements, you can build an image based on the Dockerfile in the nacos-docker project.

3. Kubernetes Deployment

Kubernetes does not currently provide standalone-mode deployment. Cluster-mode deployment is recommended.