北尚诉办
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
1.1 KiB

6 years ago
version: "3.7"
services:
nacos1:
image: nacos/nacos-server:latest
container_name: nacos1
ports:
- 10001:10001
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- /mnt/epdc/nacos/logs/nacos1:/home/nacos/logs
- /mnt/epdc/nacos/init.d/custom.properties:/home/nacos/init.d/custom.properties
environment:
PREFER_HOST_MODE: ip #如果支持主机名可以使用hostname,否则使用ip,默认也是ip
SPRING_DATASOURCE_PLATFORM: mysql #数据源平台 仅支持mysql或不保存empty
NACOS_SERVER_PORT: 10001
NACOS_SERVER_IP: 172.16.0.53 #多网卡情况下,指定ip或网卡
NACOS_SERVERS: 172.16.0.53:10001 172.16.0.51:10001 172.16.0.51:10002 #集群中其它节点[ip1:port ip2:port ip3:port]
MYSQL_SERVICE_HOST: 172.16.0.52 #mysql配置,Master为主节点,Slave为从节点
MYSQL_SERVICE_PORT: 3306
MYSQL_SERVICE_DB_NAME: esua_epdc_nacos
MYSQL_SERVICE_USER: epdc
MYSQL_SERVICE_PASSWORD: Elink@833066
MYSQL_DATABASE_NUM: 2
restart: always