Skip to content

Commit ce68d17

Browse files
authored
feat: updates Dockerfile and README with support for TLS flag usage (#105)
1 parent 30227bb commit ce68d17

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ RUN apk --no-cache add curl
44

55
RUN yarn global add --ignore-optional taskforce-connector pm2@5.2.0 && yarn cache clean
66

7-
CMD pm2-runtime taskforce -- -n "${TASKFORCE_CONNECTION}" --team "${TASKFORCE_TEAM}"
7+
CMD pm2-runtime taskforce -- -n "${TASKFORCE_CONNECTION}" --team "${TASKFORCE_TEAM}" `([ "$REDIS_USE_TLS" == "1" ] && echo --tls)`
88

99
HEALTHCHECK --interval=30s --timeout=30s \
1010
--start-period=5s --retries=3 CMD curl -f http://localhost || exit 1

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ master REDIS_MASTER
8484
nodes REDIS_NODES (comma separated list of nodes for Redis Cluster)
8585
```
8686

87+
To enable use if TLS when using the container set this environment variable:
88+
```bash
89+
REDIS_USE_TLS=1
90+
```
8791

8892
Note for Redis Cluster: You may also need to specify following with environment variables.
8993
```bash

0 commit comments

Comments
 (0)