Skip to content

Instantly share code, notes, and snippets.

@jesulink2514
Created August 15, 2022 01:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jesulink2514/47dda5a1df3c6768611999294080ef2a to your computer and use it in GitHub Desktop.
Save jesulink2514/47dda5a1df3c6768611999294080ef2a to your computer and use it in GitHub Desktop.
e2e API Docker-compose.yml
version: '3.4'
services:
sampleapi:
image: sampleapi
build:
context: .
dockerfile: sample-api/Dockerfile
ports:
- 8080:8080
tests:
image: functional-tests
build:
context: .
dockerfile: tests/Dockerfile
entrypoint: newman
command: run sample.postman_collection.json --environment=sample-local.postman_environment.json --env-var="BaseUrl=http://sampleapi:8080" --reporters cli,json --reporter-json-export /data/results/outputfile.json
volumes:
- results:/data/results
depends_on:
- sampleapi
volumes:
results:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment