0 Star 1 Fork 1

guerlab.net / nacos-docker

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Nacos Docker

Docker Pulls

This project contains a Docker image meant to facilitate the deployment of Nacos.

Project directory

  • build:Nacos makes the source code of the docker image
  • env: Environment variable file for compose yaml
  • example: Docker compose example for Nacos server

Quick Start

Run the following command:

  • Clone project

    git clone https://github.com/nacos-group/nacos-docker.git
    cd nacos-docker
  • Standalone Derby

    docker-compose -f example/standalone-derby.yaml up
  • Standalone Mysql

    docker-compose -f example/standalone-mysql.yaml up
  • Cluster

    docker-compose -f example/cluster-hostname.yaml up 
  • Service registration

    curl -X PUT 'http://127.0.0.1:8848/nacos/v1/ns/instance?serviceName=nacos.naming.serviceName&ip=20.18.7.10&port=8080'
  • Service discovery

    curl -X GET 'http://127.0.0.1:8848/nacos/v1/ns/instances?serviceName=nacos.naming.serviceName'
  • Publish config

    curl -X POST "http://127.0.0.1:8848/nacos/v1/cs/configs?dataId=nacos.cfg.dataId&group=test&content=helloWorld"
  • Get config

      curl -X GET "http://127.0.0.1:8848/nacos/v1/cs/configs?dataId=nacos.cfg.dataId&group=test"
  • Open the Nacos console in your browser

    link:http://127.0.0.1:8848/nacos/

Common property configuration

name description option
MODE cluster/standalone cluster/standalone default cluster
PREFER_HOST_MODE Whether hostname are supported hostname/ip default ip
NACOS_SERVER_PORT nacos server port default 8848
SPRING_DATASOURCE_PLATFORM standalone support mysql mysql / empty default empty
MYSQL_MASTER_SERVICE_HOST mysql master host
MYSQL_MASTER_SERVICE_PORT mysql master database port default : 3306
MYSQL_MASTER_SERVICE_DB_NAME mysql master database name
MYSQL_MASTER_SERVICE_USER username of master database
MYSQL_MASTER_SERVICE_PASSWORD password of master database
MYSQL_SLAVE_SERVICE_HOST mysql slave host
MYSQL_SLAVE_SERVICE_PORT mysql slave database port default :3306

Nacos + Grafana + Prometheus

Usage reference:Nacos monitor-guide

Note: When Grafana creates a new data source, the data source address must be http://prometheus:9090

空文件

简介

取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/guerlab_net/nacos-docker.git
git@gitee.com:guerlab_net/nacos-docker.git
guerlab_net
nacos-docker
nacos-docker
master

搜索帮助