Steps
Confirm the server ZenTao version and the container ZenTao version
- Server Zen Tao Version: 9.6.2
- Container Zen Tao Version: 9.6.3
-
Version sql comparison
- Download the official 9.6.3 source package url: http://dl.cnezsoft.com/zentao/9.6.3/ZenTaoPMS.9.6.3.zip, unzip and view \ZenTaoPMS.9.6.3\zentaopms\db\update9.6
-
Download ZenTao Mirror
- url:https://hub.docker.com/r/idoop/zentao/
- docker pull idoop/zentao:9.6.3
- docker.io/idoop/zentao 9.6.3 9564d7d5cf17 3 months ago 169 MB
Configure docker-compose
- Confirm the directory to be mounted
- Zen Tao files: /opt/zbox/app/zentao/www/data/upload/1
- Zentao configuration file: /opt/zbox/app/zentao/config
- System configuration file: /opt/zbox/etc
- Database: /opt/zbox/data/mysql
- Schedule backup file: /mnt/data/z/pms/backup
- Log file: /opt/zbox/logs
version: '2'
services:
zentao-server:
image: docker.io/idoop/zentao
ports:
- '81:80'
- '3307:3306'
environment:
- USER="root"
- PASSWD="password"
- BIND_ADDRESS="false"
volumes:
- '/srv/data/zentao/upload:/opt/zbox/app/zentao/www/data/upload/1'
- '/srv/data/zentao/config:/opt/zbox/app/zentao/config'
- '/srv/data/zentao/mysql:/opt/zbox/data/mysql'
- '/srv/data/zentao/etc:/opt/zbox/etc'
- '/srv/data/zentao/logs:/opt/zbox/logs'
- '/srv/data/zentao/backup:/mnt/data/z/pms/backup'
stop the original server
- Execute the /opt/zbox/zbox stop command to stop Apache and Mysql.
start the container
[root@localhost zentao]# pwd
/srv/docker/docker-compose/zentao
[root@localhost zentao]# ll
total 4
-rw-r--r-- 1 root root 390 Apr 25 13:53 docker-compose_v1.0.0.yml
[root@localhost zentao]# docker-compose -f ./docker-compose_v1.0.0.yml up -d
Creating zentao_zentao-server_1 ... done
-
After starting Apache and Mysql services
- The browser can directly access http://ZenTao server ip:apache port to access and log in ZenTao.
- Note: If the webpage cannot be accessed, please turn off the firewall and selinux of the computer where ZenTao is located, and then refresh the webpage to try it.
- The default administrator account of ZenTao is admin and the password is 123456.
-
Zen Tao Database
-
Web login database
- ZenTao database management uses adminer, but for security, authentication is required when accessing adminer, you need to run /opt/zbox/auth/adduser.sh to add users (first cd /opt/zbox/auth/ and then execute ./ adduser.sh)
- Visit http://the ip:apache port of Zen Tao Service on the webpage , click the "Database Management" button to have 2 layers of verification:
- The pop-up window verification is to enter the username and password added by running addusers.sh
- The webpage directly displays the login interface:
- System: MySQL is selected by default.
- server: 127.0.0.1: mysql port
- Username: root
- Password: 123456
- Database: zentao
-
Connect to the database from the command line
- Log in to the database: /opt/zbox/bin/mysql -u root -P mysql port -p (for example: /opt/zbox/bin/mysql -u root -P 3306 -p)
- Import database: /opt/zbox/bin/mysql -u root -P mysql port -p library name to be imported < XXXX.sql (for example: /opt/zbox/bin/mysql -u root -P 3306 -p zentao < zentao.sql)
-