Skip to content

Commit

Permalink
feat: updates Dockerfile and README with support for TLS flag usage (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
parangopyxis authored Jan 16, 2025
1 parent 30227bb commit ce68d17
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ RUN apk --no-cache add curl

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

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

HEALTHCHECK --interval=30s --timeout=30s \
--start-period=5s --retries=3 CMD curl -f http://localhost || exit 1
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ master REDIS_MASTER
nodes REDIS_NODES (comma separated list of nodes for Redis Cluster)
```

To enable use if TLS when using the container set this environment variable:
```bash
REDIS_USE_TLS=1
```

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

0 comments on commit ce68d17

Please sign in to comment.