docker搭建easymock

准备

安装 docker

开始

  1. 新建文件 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:
  1. 运行命令 docker-compose up -d

你可能感兴趣的:(docker搭建easymock)