# zentao-docker **Repository Path**: GetLab/zentao-docker ## Basic Information - **Project Name**: zentao-docker - **Description**: zentao 7.2.4 in docker - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2016-12-31 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # zentao in docker This image is based on the `nginx:1.8.0`, which is build from [docker file](https://git.oschina.net/gavincook/docker/tree/master/nginx/1.8.0). There contains some files: * [nginx.conf](https://git.oschina.net/gavincook/docker/blob/master/php-fpm/nginx.conf): this one is the nginx configuration, there expose prot 80 and 443. and use fast-cgi to forward requests to php-fpm * [www.conf](https://git.oschina.net/gavincook/docker/blob/master/php-fpm/www.conf): www part for php-fpm, would listen on prot 9000. * [start](https://git.oschina.net/gavincook/docker/blob/master/php-fpm/start) : This is the main entrypoint for current php-fpm image. It would start two progress: php-fpm and nginx * [init.sh](https://git.oschina.net/gavincook/docker/blob/master/php-fpm/app/init.sh): In the app folder, you can place your own php web project. The `init.sh` used to custom commands need to executed for real app project. Here we authorize some rw privilege for folder which zentao would use. ### Note zentao database config file is placed in the `/app/config/my.php`. Normally, when we first start zentao, it will lead us to install setups, and will promote us delete the `install.php` and `upgrade.php` after we go all install setups. But here, we run this in docker, we maybe won't attach docker to delete the unsed files after we installed zentao. So current zentao image placed `my.php` under `/app/config` and deleted the `install.php` and `upgrade.php`. So when you build the zentao image, you must update `my.php` with your own configuration. ### build example `docker build -t zentao:7.24` ### run example `docker run -d -p 80:80 zentao:7.24` ### test `http://127.0.0.1/www/index.php`