File tree 4 files changed +39
-12
lines changed
4 files changed +39
-12
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ services:
26
26
- 9200
27
27
volumes :
28
28
- temporal_tls_pki:/usr/share/elasticsearch/config/certs
29
+ restart : on-failure
29
30
postgresql :
30
31
container_name : temporal-postgresql
31
32
command :
@@ -47,6 +48,7 @@ services:
47
48
- 5432
48
49
volumes :
49
50
- temporal_tls_pki:/pki
51
+ restart : on-failure
50
52
temporal :
51
53
container_name : temporal
52
54
build :
@@ -78,6 +80,7 @@ services:
78
80
- 7233:7233
79
81
volumes :
80
82
- ./dynamicconfig:/etc/temporal/config/dynamicconfig
83
+ restart : on-failure
81
84
temporal-admin-tools :
82
85
container_name : temporal-admin-tools
83
86
depends_on :
@@ -106,6 +109,7 @@ services:
106
109
- temporal-network
107
110
ports :
108
111
- 8080:8080
112
+ restart : on-failure
109
113
networks :
110
114
temporal-network :
111
115
driver : bridge
Original file line number Diff line number Diff line change 1
1
# Temporal with tls enabled dependencies
2
2
3
- ## Setup
3
+ ## Execute
4
4
5
5
run from a shell
6
6
7
- ` ./tls/make-certs .sh `
7
+ ` ./tls/run-tls .sh `
8
8
9
- ## Startup
9
+ ## Script source with comments
10
+ ``` bash
11
+ #! /usr/bin/env bash
12
+ set -xe
10
13
11
- run from a shell
14
+ # Build container image for generating cert material
15
+ docker build -t temporal_tls:test -f ${PWD} /tls/Dockerfile.tls .
16
+ mkdir -p .pki
17
+
18
+ # Run container to name volume and copy out CA certificate
19
+ docker run --rm -v temporal_tls_pki:/pki -v ${PWD} /.pki:/pki-out temporal_tls:test
20
+
21
+ # Build extra layers which copy in CA certificate to local trust store
22
+ # Allows for not having to disable host verification on TLS connections
23
+ COMPOSE_PROJECT_NAME=tls_test docker-compose -f docker-compose-tls.yml build --no-cache
12
24
13
- ` COMPOSE_PROJECT_NAME=tls_test docker-compose -f docker-compose-tls.yml build --no-cache `
25
+ # Run example docker-compose environment with elasticsearch and postgresql protected with TLS
26
+ COMPOSE_PROJECT_NAME=tls_test docker-compose -f docker-compose-tls.yml up
14
27
15
- ` COMPOSE_PROJECT_NAME=tls_test docker-compose -f docker-compose-tls.yml up `
28
+ `` `
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ set -xe
3
+
4
+ # Build container image for generating cert material
5
+ docker build -t temporal_tls:test -f ${PWD} /tls/Dockerfile.tls .
6
+ mkdir -p .pki
7
+
8
+ # Run container to name volume and copy out CA certificate
9
+ docker run --rm -v temporal_tls_pki:/pki -v ${PWD} /.pki:/pki-out temporal_tls:test
10
+
11
+ # Build extra layers which copy in CA certificate to local trust store
12
+ # Allows for not having to disable host verification on TLS connections
13
+ COMPOSE_PROJECT_NAME=tls_test docker-compose -f docker-compose-tls.yml build --no-cache
14
+
15
+ # Run example docker-compose environment with elasticsearch and postgresql protected with TLS
16
+ COMPOSE_PROJECT_NAME=tls_test docker-compose -f docker-compose-tls.yml up
You can’t perform that action at this time.
0 commit comments