-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
59 lines (55 loc) · 1.53 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
59 lines (55 loc) · 1.53 KB
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
services:
wiremock:
image: local.wiremock.cdrapi
container_name: cdr-client-wiremock
build: ./wiremock
mem_limit: 256m
healthcheck:
# use a mapped URL for health checking; the response is a 200 OK with a string body "OK"
test: curl --fail http://localhost:8080/health || exit 1
interval: 5s
retries: 5
start_period: 5s
timeout: 10s
environment:
- TZ=Europe/Zurich
command: ["--verbose", "--global-response-templating"]
mock-oauth2-server:
image: ghcr.io/navikt/mock-oauth2-server:6.0.2
container_name: cdr-client-mock-oauth2-server
environment:
- TZ=Europe/Zurich
- LOG_LEVEL=DEBUG
- JSON_CONFIG_PATH=/app/config.json
- SERVER_PORT=8080
volumes:
- ./mockOAuth2Server/config.json:/app/config.json
caddy:
depends_on:
wiremock:
condition: service_healthy
mock-oauth2-server:
condition: service_started
image: local.caddy.cdrclient
container_name: cdr-client-caddy
build: ./caddy
mem_limit: 256m
ports:
- "80:80"
- "87:80"
- "3000:3000"
volumes:
- ${PWD}/../output:/srv/install:ro
healthcheck:
# checks the mock-oauth2-server's health endpoint to prove that both caddy and the mock-oauth2-server are up and running
test: curl --fail http://localhost/isalive || exit 1
interval: 5s
retries: 5
start_period: 120s
timeout: 10s
networks:
default:
name: cdr_client_net
ipam:
config:
- subnet: 10.113.0.0/16