Skip to content

Commit 6d69781

Browse files
authored
Merge pull request redis#56 from valkey-io/issue-50
Replace use of redisfab/stunnel with a Dockerfile
2 parents 0109139 + 4108a39 commit 6d69781

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

docker-compose.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,12 @@ services:
4747
- all
4848

4949
stunnel:
50-
image: redisfab/stunnel:latest
50+
build:
51+
context: ./dockers/stunnel
5152
depends_on:
5253
- valkey
5354
ports:
54-
- 6666:6666
55+
- "6666:6666"
5556
profiles:
5657
- all
5758
- standalone

dockers/stunnel/Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM ubuntu:latest
2+
MAINTAINER ahmedsobeh <[email protected]>
3+
4+
5+
RUN apt-get update && apt-get install -y stunnel
6+
7+
COPY conf /etc/stunnel/conf
8+
COPY keys /etc/stunnel/keys
9+
10+
CMD ["stunnel", "/etc/stunnel/conf/stunnel.conf"]

dockers/stunnel/conf/redis.conf renamed to dockers/stunnel/conf/stunnel.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
foreground = yes
2+
13
[valkey]
24
accept = 6666
35
connect = valkey:6379

0 commit comments

Comments
 (0)