-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (57 loc) · 1.92 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
services:
setup:
image: eclipse-temurin:17
command: bash /config/generate-resources.sh
volumes:
- ./config:/config:rw
govsso-mock:
build:
context: .
dockerfile: build/Dockerfile
image: govsso-mock
depends_on:
setup:
condition: service_completed_successfully
networks:
default:
aliases:
- govsso-mock.localhost
ports:
- '10443:10443'
volumes:
- ./config:/govsso-mock/config:ro
client:
image: ghcr.io/e-gov/tara-govsso-exampleclient:0.7.3
# TODO add HEALTHCHECK to mock's Dockerfile and replace sleep with depends_on.govsso-mock.condition: service_healthy
entrypoint: bash -c 'sleep 5 && /cnb/process/web'
depends_on:
- govsso-mock
deploy:
resources:
limits:
memory: 650M
environment:
- server.port=11443
- govsso.client-id=example-client-id
- govsso.client-secret=secret-a
- govsso.redirect-uri=https://client.localhost:11443/login/oauth2/code/govsso
- govsso.post-logout-redirect-uri=https://client.localhost:11443/?show-post-logout-message
- govsso.issuer-uri=https://govsso-mock.localhost:10443/
- govsso.trust-store=file:/var/local/config/tls/client/client.localhost.truststore.p12
- govsso.trust-store-password=changeit
- example-client.messages.title=GovSSO Client (LOCAL)
- server.ssl.key-store-type=PKCS12
- server.ssl.key-store=/var/local/config/tls/client/client.localhost.keystore.p12
- server.ssl.key-store-password=changeit
- BPL_JVM_THREAD_COUNT=10
- SPRING_PROFILES_ACTIVE=govsso
networks:
default:
aliases:
- client.localhost
ports:
- '11443:11443'
restart: unless-stopped
volumes:
# Cannot use more specific folder/files, because client container is created before setup container run is completed.
- ./config/tls:/var/local/config/tls:ro