Files
shell-scripts/0-部署应用/nacos-docker.sh
2024-11-28 16:42:36 +08:00

14 lines
326 B
Bash

#!/bin/bash
docker run -d \
-e MODE=standalone \
-e MYSQL_SERVICE_HOST=localhost \
-e MYSQL_SERVICE_PORT=33306 \
-e MYSQL_SERVICE_DB_NAME=nacos_config \
-e MYSQL_SERVICE_USER=root \
-e MYSQL_SERVICE_PASSWORD=boge14@Level5 \
--name nacos-server \
--network host \
nacos/nacos-server:2.0.2