-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathswagger-petstore.yaml
More file actions
34 lines (34 loc) · 923 Bytes
/
swagger-petstore.yaml
File metadata and controls
34 lines (34 loc) · 923 Bytes
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
services:
mitmproxy:
image: mitmproxy/mitmproxy:10.2.4
user: "0:0"
environment:
MITM_LOG_DIR: /custom-logs
MITM_LOG_FILE: ${MITM_LOG_FILE:-minlog.csv}
command: >
mitmdump
--mode reverse:http://sut-swagger-petstore:8080
--listen-host 0.0.0.0
--listen-port 8080
--set keep_host_header=true
-s /addons/minlog.py
volumes:
- ${HOST_LOG_DIR:-./mitm-logs}:/custom-logs
- ./addons:/addons:ro
ports:
- "${HOST_PORT:-8080}:8080"
depends_on:
- sut-swagger-petstore
sut-swagger-petstore:
build:
dockerfile: ./dockerfiles/swagger-petstore.dockerfile
context: ..
environment:
AUTH_PORT: ${AUTH_PORT:-8081}
# TOOL: ${TOOL:-undefined}
# RUN: ${RUN:-0}
ports:
- "${JACOCO_PORT:-6300}:6300"
# volumes:
# default env does not work on volumes
# - ${JACOCODIR}:/jacoco