springboot-helloworld/README.md
2024-10-13 10:35:44 +00:00

42 lines
537 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Spring Boot Hello World
一个使用docker构建docker-compose管理启动的Spring Boot测试应用程序
## 使用命令
- 创建服务并启动服务
```
docker-compose up -d
```
- 启动服务
```
docker-compose start
```
- 停止服务
```
docker-compose stop
```
- 重启服务
```
docker-compose restart
```
- 销毁服务
```
docker-compose down
```
- 销毁服务及镜像,下次重新编译打包
```
docker-compose down --rmi local
```
- 只构建镜像
```
docker build -t springboot-helloworld:v0.0.1 .
```