docker-compose一键搭建
services:
java-app:
container_name: java-app
image: registry.cn-hangzhou.aliyuncs.com/lx_project/cloud:java-app-1.2
environment:
DB_PASSWORD: 111111
depends_on:
- db
vue-web:
container_name: vue-web
image: registry.cn-hangzhou.aliyuncs.com/lx_project/cloud:vue-app-1.2
ports:
- "80:80"
environment:
- API_IP=192.168.61.131
depends_on:
- java-app
db:
container_name: db
image: registry.cn-hangzhou.aliyuncs.com/lx_project/cloud:mysql-1.2
restart: always
environment:
MYSQL_ROOT_PASSWORD: 111111
volumes:
- /home/cloud/data:/var/lib/mysql
## 功能&特点
文章来源: https://xz.aliyun.com/t/12543
如有侵权请联系:admin#unsafe.sh