# 参数解释 --link test_mysql 同一个docker内,可以通过容器名称获取到host,获取到test_mysql的host # 环境变量 ZT_MYSQL_HOST MySQL 主机地址 ZT_MYSQL_PORT MySQL 主机端口 ZT_MYSQL_USER MySQL 用户名 ZT_MYSQL_PASSWORD MySQL 密码 ZT_MYSQL_DB MySQL 数据库名称 PHP_SESSION_TYPE php session 类型,files | redis PHP_SESSION_PATH php session 存储路径
执行docker run 之后,我们查看一下禅道的logs,容器启动完成,禅道的logs指引我们要从浏览器打开ip:port开始安装向导。 我们禅道docker容器对外暴露了8088端口,虚拟机默认会对外暴露8088端口,那么访问虚拟机ip:8088直接就可以访问到docker的8088 获取虚拟机的ip地址,不记得如何查看点击这里,mysql篇的第五点
$ sudo docker logs 禅道容器id 12:03:31.20 12:03:31.21 Welcome to the Easysoft ZenTao 21.4 container 12:03:31.21 Subscribe to project updates by watching https://www.zentao.net 12:03:31.22 Submit issues and feature requests at https://www.zentao.net/ask.html 12:03:31.23 12:03:31.27 INFO ==> Prepare persistence directories. 12:03:32.33 INFO ==> Render php.ini with environment variables. 12:03:32.39 INFO ==> Check whether the Redis is available. 12:03:33.41 INFO ==> Init: Redis is ready. 12:03:33.43 INFO ==> Check zentao data owner... 12:03:33.45 INFO ==> Render apache sites config with envionment variables. 12:03:33.49 INFO ==> Prepare custom extensions. 12:03:33.53 INFO ==> Check whether the MySQL is available. 12:03:33.55 INFO ==> Check whether the Apache is available. 12:03:34.56 INFO ==> Apache: MySQL is ready. 12:03:34.58 WARN ==> Sentry: Waiting Apache 1 seconds 12:03:34.61 WARN ==> Database zentao_test does not exist, creating... 12:03:34.68 INFO ==> Database zentao_test created successfully [Fri Feb 14 12:03:34.913841 2025] [mpm_prefork:notice] [pid 183:tid 183] AH00163: Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips SVN/1.14.4 configured -- resuming normal operations [Fri Feb 14 12:03:34.914392 2025] [core:notice] [pid 183:tid 183] AH00094: Command line: '/opt/zbox/run/apache/httpd -D FOREGROUND' 12:03:36.60 INFO ==> Sentry: Apache is ready. 12:03:36.64 INFO ==> The service has been started. Open your browser to access the specified domain or ip:port to complete the installation wizard 12:03:36.65 INFO ==> 服务已启动完成, 请使用浏览器访问设置的域名或ip:port, 继续完成后续安装向导 12:03:38.68 INFO ==> The service has been started. Open your browser to access the specified domain or ip:port to complete the installation wizard 12:03:38.69 INFO ==> 服务已启动完成, 请使用浏览器访问设置的域名或ip:port, 继续完成后续安装向导 12:03:41.73 INFO ==> The service has been started. Open your browser to access the specified domain or ip:port to complete the installation wizard 12:03:41.74 INFO ==> 服务已启动完成, 请使用浏览器访问设置的域名或ip:port, 继续完成后续安装向导 12:03:42.77 INFO ==> The service has been started. Open your browser to access the specified domain or ip:port to complete the installation wizard 12:03:42.78 INFO ==> 服务已启动完成, 请使用浏览器访问设置的域名或ip:port, 继续完成后续安装向导