Commit a0008a86 authored by DuanPengfei's avatar DuanPengfei

feat: update easy-mock to 1.3.0

parent ede61041
......@@ -28,8 +28,8 @@ RUN wget http://cdn.npm.taobao.org/dist/node/v8.4.0/node-v8.4.0-linux-x64.tar.gz
USER easy-mock
RUN mkdir easy-mock && \
wget https://github.com/easy-mock/easy-mock/archive/v1.2.3.tar.gz && \
tar -xzvf v1.2.3.tar.gz -C easy-mock --strip-components 1
wget https://github.com/easy-mock/easy-mock/archive/v1.3.0.tar.gz && \
tar -xzvf v1.3.0.tar.gz -C easy-mock --strip-components 1
# npm install dependencies and run build
WORKDIR /home/easy-mock/easy-mock
......
......@@ -9,7 +9,7 @@ services:
source: ./data/db # 数据库文件存放地址,根据需要修改为本地地址
target: /data/db
web:
image: easymock/easymock:1.2.3
image: easymock/easymock:1.3.0
command: /bin/bash -c "npm run build && npm start"
links:
- mongodb:mongodb
......@@ -29,4 +29,4 @@ services:
2. 新建文件 `docker-compose.yml` 并将上面 docker-compose 文件内容复制进入 `docker-compose.yml`,然后将内容中注释位置替换为自己需要的本地地址即可。主要有三个需要替换的地方,数据库文件存储位置,日志文件存储位置,自定义配置文件本地地址。
3. 启动:`docker-compose up -d`
自定义配置参考 [easymock readme](https://github.com/easy-mock/easy-mock) 中的配置小节,**注意,使用容器方式运行不需要指定 `db` 参数**
\ No newline at end of file
自定义配置参考 [easymock readme](https://github.com/easy-mock/easy-mock) 中的配置小节,**注意,使用容器方式运行不需要指定 `db` 参数**
......@@ -7,7 +7,7 @@ services:
source: ./data/db # 数据库文件存放地址,根据需要修改为本地地址
target: /data/db
web:
image: easymock/easymock:1.2.3
image: easymock/easymock:1.3.0
command: /bin/bash -c "npm run build && npm start"
links:
- mongodb:mongodb
......@@ -19,4 +19,4 @@ services:
target: /home/easy-mock/easy-mock/logs
- type: bind
source: ./production.json # 配置地址,请使用本地配置地址替换
target: /home/easy-mock/easy-mock/config/production.json
\ No newline at end of file
target: /home/easy-mock/easy-mock/config/production.json
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment