Docker deploy the installation Zen

Download Zen

Zen Open Source Edition

Database username: root, default password: 123456. MYSQL_ROOT_PASSWORD variables can be set to run to change the password

You can mount directory

/ App / zentaopms: Zen directory is the directory, which contains the code and accessories Zen upload directory.

/ Var / lib / mysql: the directory data directory database

Department container

Note: need to close down selinux

1. Construction of the mirror

Download and install packages via FTP upload to the server installation package, unzip. Docker_zentao into the directory,

Run docker build -t [image name] [Dockerfile directory] constructed image (the installation package is actually a script - dockerfile)

unzip -d ./ docker_zentao.zip               # 解压安装到到当前路径
cd docker_zentao                            # 进入解压文件目录 
docker build -t zentao_latest ./            # 构建镜像

View Mirror build results

docker images

 

2, run-time image

docker run --name [容器名称] -p [主机端口]:80 -v [主机代码目录]:/app/zentaopms -v [主机数据目录]:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=[数据库密码] -d [镜像名]:latest

For example: Create / home / docker_data / zentao directory

Excuting an order:

docker run --name zentao -p 8002:80 -v /home/docker_data/zenta/www:/app/zentaopms -v /home/docker_data/zenta/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123456 -d zentao:latest

Successful operation

Installation Zen

1. The client browser to access http: // IP: port number automatically transferred to the installation process

2. License Agreement, check the agreement and click Next

3. The system check, click Next

4. Modify the configuration file

Zen container itself using mysql database of services: 127.0.0.1 or localhost

Use other mysql database, the database service, port, account number and password and click Next the corresponding message

If the database zentao already exists, check to clear existing data

5. Save my.php profile, click Next to confirm no problem

Directly modifying the subsequent need to adjust the app / zentaopms / config / my.php file

6. The installation is successful, click Log Zen Management System

7. Set the company name, account number and password work

8. Save successfully entered the login page, enter the account password to login

9. Log successfully entered the Zen, Zen safety tips to change the password

So far, docker Zen deployment installation complete

Reference: https://www.zentao.net/book/zentaopmshelp/303.html

Published 59 original articles · won praise 19 · views 10000 +

Guess you like

Origin blog.csdn.net/weixin_43507959/article/details/105014852