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.
25 lines
1.1 KiB
25 lines
1.1 KiB
version: "3.7"
|
|
services:
|
|
nacos3:
|
|
image: nacos/nacos-server:latest
|
|
container_name: nacos3
|
|
ports:
|
|
- 9601:9601
|
|
volumes:
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /opt/epdc/nacos/logs:/home/nacos/logs
|
|
- /opt/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: 9601
|
|
NACOS_SERVER_IP: 172.31.171.62 #多网卡情况下,指定ip或网卡
|
|
NACOS_SERVERS: 172.31.171.61:9601 172.31.171.61:9602 172.31.171.62:9601 #集群中其它节点[ip1:port ip2:port ip3:port]
|
|
MYSQL_SERVICE_HOST: 172.31.171.61 #mysql配置,Master为主节点,Slave为从节点
|
|
MYSQL_SERVICE_PORT: 9600
|
|
MYSQL_SERVICE_DB_NAME: epdc_nacos
|
|
MYSQL_SERVICE_USER: nacos
|
|
MYSQL_SERVICE_PASSWORD: elink888
|
|
MYSQL_DATABASE_NUM: 2
|
|
restart: always
|
|
|