
raulcsj/nacos-server!Docker Pulls
This project contains a Docker image meant to facilitate the deployment of Nacos.
中文
After the latest nacos/nacos-server:latest image, the database master-slave image has been removed. For specific reasons, refer to Removing the Master-Slave Image Configuration
Run the following command:
Clone project
powershellgit clone --depth 1 [***] cd nacos-docker
Standalone Derby
powershelldocker-compose -f example/standalone-derby.yaml up
Standalone Mysql
powershelldocker-compose -f example/standalone-mysql.yaml up
Cluster
powershelldocker-compose -f example/cluster-hostname.yaml up
Service registration
powershellcurl -X PUT '[***]
Service discovery
powershellcurl -X GET '[***]
Publish config
powershellcurl -X POST "[***]"
Get config
powershellcurl -X GET "[***]"
Open the Nacos console in your browser
link:[***]
| name | description | option |
|---|---|---|
| MODE | cluster/standalone | cluster/standalone default cluster |
| NACOS_SERVERS | nacos cluster address | eg. ip1:port1 ip2:port2 ip3:port3 |
| PREFER_HOST_MODE | Whether hostname are supported | hostname/ip default ip |
| NACOS_APPLICATION_PORT | nacos server port | default 8848 |
| NACOS_SERVER_IP | custom nacos server ip when network was mutil-network | |
| SPRING_DATASOURCE_PLATFORM | standalone support mysql | mysql / empty default empty |
| MYSQL_SERVICE_HOST | mysql host | |
| MYSQL_SERVICE_PORT | mysql database port | default : 3306 |
| MYSQL_SERVICE_DB_NAME | mysql database name | |
| MYSQL_SERVICE_USER | username of database | |
| MYSQL_SERVICE_PASSWORD | password of database | |
| The latest version of the image removes this attribute, using MYSQL_SERVICE_HOST | ||
| The latest version of the image removes this attribute, using MYSQL_SERVICE_PORT | default : 3306 | |
| The latest version of the image removes this attribute, using MYSQL_SERVICE_DB_NAME | ||
| The latest version of the image removes this attribute, using MYSQL_SERVICE_USER | ||
| The latest version of the image removes this attribute, using MYSQL_SERVICE_PASSWORD | ||
| The latest version of the image removes this attribute | ||
| The latest version of the image removes this attribute | default :3306 | |
| MYSQL_DATABASE_NUM | It indicates the number of database | default :1 |
| JVM_XMS | -Xms | default :2g |
| JVM_XMX | -Xmx | default :2g |
| JVM_XMN | -Xmn | default :1g |
| JVM_MS | -XX:MetaspaceSize | default :128m |
| JVM_MMS | -XX:MaxMetaspaceSize | default :320m |
| NACOS_DEBUG | enable remote debug | y/n default :n |
| TOMCAT_ACCESSLOG_ENABLED | server.tomcat.accesslog.enabled | default :false |
| NACOS_AUTH_SYSTEM_TYPE | The auth system to use, currently only 'nacos' is supported | default :nacos |
| NACOS_AUTH_ENABLE | If turn on auth system | default :false |
| NACOS_AUTH_TOKEN_EXPIRE_SECONDS | The token expiration in seconds | default :*** |
| NACOS_AUTH_TOKEN | The default token | default :SecretKey012345678901234567890123456789012345678901234567890123456789 |
| NACOS_AUTH_CACHE_ENABLE | Turn on/off caching of auth information. By turning on this switch, the update of auth information would have a 15 seconds delay. | default : false |
| MEMBER_LIST | Set the cluster list with a configuration file or command-line argument | eg:192.168.16.101:8847?raft_port=8807,192.168.16.101?raft_port=8808,192.168.16.101:8849?raft_port=8809 |
| EMBEDDED_STORAGE | Use embedded storage in cluster mode without mysql | embedded default : none |
Usage reference:Nacos monitor-guide
Note: When Grafana creates a new data source, the data source address must be [*]





manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务