Skip to main content

Docker

@ng-apimock/core is also available as a docker image in combination with @ng-apimock/dev-interface.

Running

You can start the docker container manually

$ docker run --name my-mock-server -d ngapimock/standalone:latest -p 3000:3000 -v ./mocks:/opt/ngapimock/mocks

or through docker-compose

version: '3.3'

services:
ngapimock-standalone:
image: ngapimock/standalone:latest
restart: always
ports:
- '3000:3000'
expose:
- '3000'
volumes:
- ./mocks:/opt/ngapimock/mocks // map your mocks

Urls