forked from sahaj-nano/nano-demo-calculator-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose-file.yml
35 lines (34 loc) · 936 Bytes
/
compose-file.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
version: "3.9"
services:
web-app:
build:
context: .
deploy:
resources:
limits:
cpus: ${web_app_cpu:-2}
memory: ${web_app_memory:-4G}
web-app-health:
image: giantswarm/tiny-tools:latest
entrypoint: sleep infinity
healthcheck:
test: curl --fail http://web-app:8080/calculator/greeting
interval: 3s
timeout: 2s
retries: 3
start_period: 2s
test-driver:
image: postman/newman:alpine
depends_on:
web-app-health:
condition: service_healthy
volumes:
- ./collections:/etc/newman
command: >
run ${newman_collectionName}.postman_collection.json --environment local.postman_environment.json \
--env-var "host=web-app:8080" --timeout-request 5000 --bail --reporters cli,json
deploy:
resources:
limits:
cpus: ${test_driver_cpu:-2}
memory: ${test_driver_memory:-4G}