![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
docker
SincerelyApe
这个作者很懒,什么都没留下…
展开
-
docker部署springBoot项目集群
yml文件server: port: ${eureka.port} #docker run 时用传递环境变量 eureka: server: port: 8761 port2: 8762 port3: 8763 hostname: eureka.com instance: hostname: ${eureka.hostname} clien...原创 2019-01-24 10:40:51 · 1137 阅读 · 0 评论 -
将springBoot单项目部署到docker中
项目打jar包https://blog.csdn.net/SincerelyApe/article/details/86614112在linux系统中创建一个文件夹,存放jar和Dockerfile例:eureka-danjiDockerfileFROM java:alpineCOPY . /usr/src/myappWOEKDIR /usr/src/myappCMD ["jav...原创 2019-01-23 17:51:01 · 494 阅读 · 0 评论