-
Notifications
You must be signed in to change notification settings - Fork 41
docker_compose.yml
zhanyeye edited this page Jan 29, 2021
·
2 revisions
docker-compose配置文件
version: '3.8'
services:
mysql:
image: mysql
ports:
- "3306:3306"
volumes:
- /home/mysql/conf:/etc/mysql/conf.d
- /home/mysql/data:/var/lib/mysql
- /etc/localtime:/etc/localtime
environment:
- MYSQL_ROOT_PASSWORD={mysql密码}
- TZ=Asia/Shanghai
server:
depends_on:
- mysql
build:
context: ./dingtalk-springboot
ports:
- "8080:8080"
volumes:
- /etc/timezone:/etc/timezone
- /etc/localtime:/etc/localtime
environment:
- PROFILES=test
- thost=mysql:3306
- tusername={mysql用户名}
- tpassword={mysql密码}
web:
depends_on:
- server
build:
context: ./dingtalk-vue
ports:
- "8089:80"
volumes:
- /etc/timezone:/etc/timezone
- /etc/localtime:/etc/localtime
environment:
- backend=server:8080