Skip to content

Launch with Docker

Launch APICHAP on your environment by using the docker image from dockerhub.

Config files

Precondition: APICHAP will only start if you provide valid configuration files.

Both files must be either copied or mounted into the /app folder of your apichap-core container.

Both examples below show how to start APICHAP with mounted configuration files. For your usecase and security reasons it might be recommended to copy the files into the imageĀ“s /app path on container creation.

Launch with docker run

Start the APICHAP core image using docker run and mount the configuration files into the docker image /app folder.

docker run -it
  -v /opt/demo/specs/openapi.yaml:/app/openapi.yaml
  -v /opt/demo/specs/config.yaml:/app/config.yaml
  -p 8080:8080
  apichap/apichap-core:latest

USE ABSOLUTE PATH TO YOUR FILES

Launch with docker-compose

Start the APICHAP image by using docker-compose and mount the specs folder (with your configuration files) into the docker image /app folder.

version: "3.9"
  services:
    apichap:
      image: apichap/apichap-core:latest
      ports:
        - "8080:8080"
      volumes:
        - ./specs:/app