Skip to content

Commit bdc5e9f

Browse files
committed
[docker] Add missing RSA for composer
1 parent 5e870fe commit bdc5e9f

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

docker-compose.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,19 @@ services:
44
# DEPENDENCIES #
55
###########################
66

7+
# Generate RSA key for xtm-composer (PKCS#8 format)
8+
rsa-key-generator:
9+
image: alpine/openssl:3.5.4
10+
volumes:
11+
- rsakeys:/keys
12+
entrypoint: ["/bin/ash"]
13+
command: ["-c", "if [ ! -f /keys/private_key.pem ]; then openssl genpkey -algorithm RSA -out /keys/private_key.pem -pkeyopt rsa_keygen_bits:4096; fi && tail -f /dev/null"]
14+
healthcheck:
15+
test: ["CMD", "test", "-f", "/keys/private_key.pem"]
16+
interval: 10s
17+
timeout: 5s
18+
retries: 3
19+
restart: always
720
pgsql:
821
image: postgres:17-alpine
922
environment:
@@ -255,3 +268,4 @@ volumes:
255268
s3data:
256269
amqpdata:
257270
esdata:
271+
rsakeys:

0 commit comments

Comments
 (0)