-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
92 lines (86 loc) · 2.87 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
81
82
83
84
85
86
87
88
89
90
91
92
services:
cdoc2-postgres:
container_name: cdoc2-postgres-bats
image: postgres
healthcheck:
test: [ "CMD-SHELL", "pg_isready -d postgres -U postgres" ]
interval: 5s
timeout: 10s
retries: 120
restart: always
ports:
- "7432:5432"
environment:
POSTGRES_DB: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
db-init:
image: ghcr.io/open-eid/cdoc2-server-liquibase:${CDOC2_SERVERS_TAG}
depends_on:
cdoc2-postgres:
condition: service_healthy
command: --url jdbc:postgresql://cdoc2-postgres/postgres --username=postgres --password=postgres --defaultsFile=liquibase.properties update
cdoc2-put-server:
container_name: cdoc2-put-server-bats
image: ghcr.io/open-eid/cdoc2-put-server:${CDOC2_SERVERS_TAG}
ports:
- "8443:8443"
# monitoring
- "18443:18443"
# volumes:
# - ./serverconf:/opt/cdoc2
configs:
- source: put-server-conf
target: /config/application-put-server.properties
- source: truststore
target: /config/servertruststore.jks
- source: keystore
target: /config/cdoc2server.p12
environment:
- SPRING_CONFIG_ADDITIONAL_LOCATION=optional:file:/config/application-put-server.properties
# - JAVA_OPTS=-Djavax.net.debug=ssl:handshake:verbose:keymanager:trustmanager -Djava.security.debug=access:stack
depends_on:
cdoc2-postgres:
condition: service_healthy
db-init:
condition: service_completed_successfully
# curl is not installed on image, and following healthcheck will fail
# healthcheck:
# test: curl -k --silent --fail --connect-timeout 1 https://localhost:18443/actuator/health|grep UP
# interval: 5s
# timeout: 30s
# retries: 3
# start_period: 5s
mem_limit: 1g
cdoc2-get-server:
container_name: cdoc2-get-server-bats
image: ghcr.io/open-eid/cdoc2-get-server:${CDOC2_SERVERS_TAG}
ports:
- "8444:8444"
# monitoring
- "18444:18444"
configs:
- source: get-server-conf
target: /config/application-get-server.properties
- source: truststore
target: /config/servertruststore.jks
- source: keystore
target: /config/cdoc2server.p12
environment:
- SPRING_CONFIG_ADDITIONAL_LOCATION=optional:file:/config/application-get-server.properties
# - JAVA_OPTS=-Djavax.net.debug=ssl:handshake:verbose:keymanager:trustmanager -Djava.security.debug=access:stack
depends_on:
cdoc2-postgres:
condition: service_healthy
db-init:
condition: service_completed_successfully
mem_limit: 1g
configs:
put-server-conf:
file: serverconf/application-put-server.properties
get-server-conf:
file: serverconf/application-get-server.properties
truststore:
file: ./serverconf/servertruststore.jks
keystore:
file: ./serverconf/cdoc2server.p12