Created
August 15, 2022 01:34
-
-
Save jesulink2514/47dda5a1df3c6768611999294080ef2a to your computer and use it in GitHub Desktop.
e2e API Docker-compose.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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