forked from gematik/app-PkiTestsuite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-base.yml
56 lines (48 loc) · 1.63 KB
/
docker-compose-base.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
version: '3.7'
# Common Health Check Properties
x-healthcheck-config: &healthcheck-ref
# Expects that the Spring Actuator port is 8180
#test: "curl --fail --silent http://localhost:8180/actuator/health | grep UP"
interval: 15s
timeout: 10s
retries: 40
start_period: 30s
# Common Environment Timezone Entry
x-environment-timezone: &environment-timezone-ref
TZ: Europe/Berlin
# Common Environment Server ports
x-environment-server-ports: &environment-server-ports-ref
MANAGEMENT_PORT: 8180 # Spring Actuator Port
# Common Service Properties
x-service-setup: &service-setup-ref
restart: always
# Common Network
x-service-network: &service-network-ref
networks:
pkits-federation:
services:
# OCSP responder
pkits-ocsp-responder:
image: ${PKITS_ARTIFACT_REGISTRY}/pki/pkits-ocsp-responder:${appVersion}
user: 10000:10000
container_name: pkits-ocsp-responder
<<: [ *service-network-ref, *service-setup-ref ]
environment:
<<: [ *environment-timezone-ref, *environment-server-ports-ref ]
healthcheck:
<<: *healthcheck-ref
test: "curl --fail --silent http://localhost:8083/actuator/health | grep UP"
# TSL provider
pkits-tsl-provider:
image: ${PKITS_ARTIFACT_REGISTRY}/pki/pkits-tsl-provider:${appVersion}
user: 10000:10000
container_name: pkits-tsl-provider
<<: [ *service-network-ref, *service-setup-ref ]
environment:
<<: [ *environment-timezone-ref, *environment-server-ports-ref ]
healthcheck:
<<: *healthcheck-ref
test: "curl --fail --silent http://localhost:8084/actuator/health | grep UP"
networks:
pkits-federation:
name: pkits-federation