Created
April 25, 2020 10:54
-
-
Save Restry/84277a9e1af598e0740a34fedf8ee718 to your computer and use it in GitHub Desktop.
docker compose 文件。 可视化快速生成模拟数据的持久化服务,官方站点:https://easy-mock.com
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
mongodb: | |
image: mongo:3.4.1 | |
volumes: | |
# ./data/db 数据库文件存放地址,根据需要修改为本地地址 | |
- './data/db:/data/db' | |
networks: | |
- easy-mock | |
restart: always | |
redis: | |
image: redis:4.0.6 | |
command: redis-server --appendonly yes | |
volumes: | |
# ./data/redis redis 数据文件存放地址,根据需要修改为本地地址 | |
- './data/redis:/data' | |
networks: | |
- easy-mock | |
restart: always | |
web: | |
image: easymock/easymock:1.6.0 | |
command: /bin/bash -c "npm start" | |
ports: | |
- 7300:7300 | |
volumes: | |
# 日志地址,根据需要修改为本地地址 | |
- './logs:/home/easy-mock/easy-mock/logs' | |
# 配置地址,请使用本地配置地址替换 | |
# - './production.json:/home/easy-mock/easy-mock/config/production.json' | |
networks: | |
- easy-mock | |
restart: always | |
networks: | |
easy-mock: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment