Skip to content

Commit 926a4d4

Browse files
feat(security): Add redis config file related envs
New env added for redis' conf files related Closes: edgexfoundry#402 Signed-off-by: Jim Wang <[email protected]>
1 parent bad56a4 commit 926a4d4

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

compose-builder/add-security.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ volumes:
2727
postgres-config:
2828
# non-shared volumes
2929
postgres-data:
30+
redis-config:
3031

3132
services:
3233
security-bootstrapper:
@@ -54,8 +55,13 @@ services:
5455
- common-sec-stage-gate.env
5556
environment:
5657
SECRETSTORE_TOKENFILE: /tmp/edgex/secrets/edgex-security-bootstrap-redis/secrets-token.json
58+
DATABASECONFIG_PATH: /redis/conf
59+
DATABASECONFIG_NAME: redis.conf
60+
tmpfs:
61+
- /redis
5762
volumes:
5863
- edgex-init:/edgex-init:ro,z
64+
- redis-config:/redis/conf:z
5965
- /tmp/edgex/secrets/edgex-security-bootstrap-redis:/tmp/edgex/secrets/edgex-security-bootstrap-redis:ro,z
6066
depends_on:
6167
- security-bootstrapper

compose-builder/common-sec-stage-gate.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ STAGEGATE_SECRETSTORESETUP_TOKENS_READYPORT=54322
2727
# this is intended to be the same as Database.Primary.Host/.Port for other services
2828
STAGEGATE_DATABASE_HOST=edgex-redis
2929
STAGEGATE_DATABASE_PORT=6379
30-
STAGEGATE_DATABASE_READYPORT=54323
30+
STAGEGATE_DATABASE_READYPORT=6379
3131
# this is intended to be the same as Registry.Host/.Port for other services
3232
STAGEGATE_REGISTRY_HOST=edgex-core-consul
3333
STAGEGATE_REGISTRY_PORT=8500

0 commit comments

Comments
 (0)