docker-compse搭建nacos
作者:互联网
version: '3'
services:
nacos:
image: nacos/nacos-server
container_name: nacos-standalone-mysql
environment:
- "PREFER_HOST_MODE=hostname"
- "MODE=standalone"
- "MYSQL_DATABASE_NUM=1"
- "SPRING_DATASOURCE_PLATFORM=mysql"
- "MYSQL_SERVICE_HOST=localhost"
- "MYSQL_SERVICE_DB_NAME=nacos"
- "MYSQL_SERVICE_PORT=3306"
- "MYSQL_SERVICE_USER=root"
- "MYSQL_SERVICE_PASSWORD=root"
volumes:
- ./standalone-logs/:/home/nacos/logs
- ./custom.properties:/home/nacos/init.d/custom.properties
ports:
- 8848:8848
restart: on-failure
标签:logs,SERVICE,standalone,mysql,nacos,MYSQL,docker,compse 来源: https://www.cnblogs.com/surenyue/p/16094804.html