-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
80 lines (77 loc) · 2.37 KB
/
docker-compose.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
services:
spring:
container_name: spring
tty: true
image: maven:3.9.9-amazoncorretto-21
command: mvn -Dspring-boot.run.profiles=${SB_PROFILE:-dev} spring-boot:run
working_dir: /app-root/
network_mode: host
environment:
RESOURCE_DIR: ./static
SPRING_THYMELEAF_PREFIX: file:src/main/resources/templates/
SPRING_THYMELEAF_CACHE: false
SPRING_WEB_RESOURCES_STATIC_LOCATIONS: file:src/main/resources/static/
SPRING_WEB_RESOURCES_CACHE_PERIOD: 0
SB_PROFILE: ${SB_PROFILE:-dev}
healthcheck:
test: [ "CMD", "sh", "-c", "echo > /dev/tcp/localhost/8448" ]
interval: 5s
timeout: 5s
retries: 5
volumes:
- ./:/app-root/
- ~/.m2/repository:/root/.m2/repository
shibboleth-service-provider:
build:
context: ./shibboleth
dockerfile: Dockerfile
args:
- NODE_ENV=test
container_name: unilu-pruefungsabfrage-shibboleth-sp
hostname: unilu-pruefungsabfrage-shibboleth-sp
network_mode: host
environment:
LOG_LEVEL: warn
volumes:
- type: bind
source: ./shibboleth/secrets/test/httpd.crt.pem
target: /etc/pki/tls/certs/httpd.crt.pem
read_only: true
- type: bind
source: ./shibboleth/secrets/test/httpd.key.pem
target: /etc/pki/tls/private/httpd.key.pem
read_only: true
- type: bind
source: ./shibboleth/secrets/test/sp.crt.pem
target: /etc/shibboleth/sp.crt.pem
read_only: true
- type: bind
source: ./shibboleth/secrets/test/sp.key.pem
target: /etc/shibboleth/sp.key.pem
read_only: true
- type: bind
source: ./shibboleth/secrets/SWITCHaaiRootCA.crt.pem
target: /etc/shibboleth/SWITCHaaiRootCA.crt.pem
read_only: true
maven:
container_name: maven
image: maven:3.9.9-amazoncorretto-21
command: mvn fizzed-watcher:run
working_dir: /app-root/
volumes:
- ./:/app-root/
- ~/.m2/repository:/root/.m2/repository
zap:
container_name: zap
tty: true
image: ghcr.io/zaproxy/zaproxy:stable
network_mode: host
command: zap-baseline.py -t http://localhost:8080 -c "rule-config.tsv" -r zap-report.html -z "-configfile /zap/wrk/options.conf"
working_dir: /zap
profiles:
- zap
depends_on:
spring:
condition: service_healthy
volumes:
- ./zap:/zap/wrk/:rw