1. 新增了 docker-compose 配置文件 docker-compose.yml

2.新增 docker-compose 配置项实例文件env-example
3. 新增了配置项设置,并调整了项目在容器中的目录
This commit is contained in:
xewk
2018-01-06 15:18:11 +08:00
parent e8b38500a6
commit 88c9f6b18e
5 changed files with 87 additions and 5 deletions

21
env-example Normal file
View File

@@ -0,0 +1,21 @@
###########################################################
# General Setup
###########################################################
### Application Path ###################################################################################################
# Point to your code, will be available at `/var/www/mindoc`.
APPLICATION=../mindoc_volume/
### GLOBAL ENVIRONMENT #################################################################################################
### 数据库配置 ,如果你的数据库不在容器内或没有用 --link过 那必须要写外部数据库ip
MYSQL_PORT_3306_TCP_ADDR=192.168.4.25
MYSQL_PORT_3306_TCP_PORT=3306
MYSQL_INSTANCE_NAME=mindoc_db
MYSQL_USERNAME=root
MYSQL_PASSWORD=root
# expose port
HTTP_PORT=8181