準(zhǔn)備
安裝 docker
開始
- 新建文件
docker-compose.yml
version: '3'
services:
mongodb:
image: mongo:3.4
privileged: true
networks:
- easy-mock
restart: always
redis:
image: redis
privileged: true
command: redis-server --appendonly yes
networks:
- easy-mock
restart: always
web:
image: easymock/easymock
privileged: true
command: /bin/bash -c "npm start"
ports:
- 7300:7300
networks:
- easy-mock
restart: always
networks:
easy-mock:
- 運(yùn)行命令
docker-compose up -d