docker 启动nacos
docker-compose.yml 文件内容
version: "2"
services:
nacos:
image: nacos/nacos-server:latest
container_name: nacos-standalone-mysql
# env_file:
# - ./nacos-standlone-mysql.env
environment:
- PREFER_HOST_MODE=hostname
- MODE=standalone
- SPRING_DATASOURCE_PLATFORM=mysql
- MYSQL_SERVICE_HOST=host_ip
- MYSQL_SERVICE_DB_NAME=xxx-nacos
- MYSQL_SERVICE_PORT=3306
docker 启动nacos最先出现在Python成神之路。
共有 0 条评论