-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.certs.yml
More file actions
27 lines (26 loc) · 1.05 KB
/
Copy pathdocker-compose.certs.yml
File metadata and controls
27 lines (26 loc) · 1.05 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
services:
volumes-provisioner:
image: hasnat/volumes-provisioner
environment:
PROVISION_DIRECTORIES: "1000:1000:0755:/tmp/certs"
volumes:
- "./certs:/tmp/certs"
network_mode: none
cert-gen:
image: docker.eventstore.com/eventstore-utils/es-gencert-cli:latest
entrypoint: bash
user: "1000:1000"
command: >
-c "mkdir -p ./certs && cd /certs
&& es-gencert-cli create-ca
&& es-gencert-cli create-node -out ./node1 -ip-addresses 127.0.0.1,172.30.240.11 -dns-names localhost
&& es-gencert-cli create-node -out ./node2 -ip-addresses 127.0.0.1,172.30.240.12 -dns-names localhost
&& es-gencert-cli create-node -out ./node3 -ip-addresses 127.0.0.1,172.30.240.13 -dns-names localhost
&& es-gencert-cli create-ca -out ./untrusted-ca
&& es-gencert-cli create-user -username admin
&& es-gencert-cli create-user -username invalid
&& find . -type f -print0 | xargs -0 chmod 666"
volumes:
- "./certs:/certs"
depends_on:
- volumes-provisioner