Docker部署zentao
docker-compose.yml文件如下:
version: '3.1'
services:
zendao:
image: idoop/zentao:latest
restart: always
container_name: zendao
environment:
ADMINER_USER: "root"
ADMINER_PASSWD: "123456"
BIND_ADDRESS: "false"
MYSQL_ROOT_PASSWORD: 123456
ports:
- 10080:80
- 13306:3306
extra_hosts:
- "smtp.exmail.qq.com:163.177.90.125"
volumes:
- ./zentao:/opt/zentao
- ./mysql:/var/lib/mysql
创建zentao目录,将上述内容写入到docker-compose.yml文件。
docker-compose up -d
启动zentao服务
docker-compose down
关闭zentao服务