yz
2021-03-17 353d3489eb7096c176ec5595f87efa2c9d82c52c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
version: '3'
 
services:
  nacos:
    image: nacos/nacos-server:1.1.4
    container_name: nacos-standalone-mysql
    environment:
      - "PREFER_HOST_MODE=hostname"
      - "MODE=standalone"
      - "SPRING_DATASOURCE_PLATFORM=mysql"
      - "MYSQL_MASTER_SERVICE_HOST=127.0.0.1"
      - "MYSQL_MASTER_SERVICE_DB_NAME=febs_nacos"
      - "MYSQL_MASTER_SERVICE_PORT=3306"
      - "MYSQL_MASTER_SERVICE_USER=root"
      - "MYSQL_MASTER_SERVICE_PASSWORD=123456"
      - "MYSQL_SLAVE_SERVICE_HOST=127.0.0.1"
      - "MYSQL_SLAVE_SERVICE_PORT=3306"
    volumes:
      - /febs/nacos/standalone-logs/:/home/nacos/logs
      - /febs/nacos/custom.properties:/home/nacos/init.d/custom.properties
    ports:
      - 8001:8848
    restart: on-failure