2
0
mirror of https://github.com/boostorg/redis.git synced 2026-01-19 04:42:09 +00:00

docker-compose without build

This commit is contained in:
Ruben Perez
2024-04-01 13:56:36 +02:00
committed by Marcelo
parent ef6dea1666
commit 90f3d6cd92
2 changed files with 11 additions and 12 deletions

View File

@@ -1,11 +0,0 @@
FROM redis:alpine
COPY tls/ /tls/
CMD [ "redis-server", \
"--tls-port", "6380", \
"--tls-cert-file", "/tls/server.crt", \
"--tls-key-file", "/tls/server-key.key", \
"--tls-ca-cert-file", "/tls/ca.crt", \
"--tls-auth-clients", "no" \
]

View File

@@ -1,6 +1,16 @@
services:
redis:
build: .
image: "redis:alpine"
command: [
"redis-server",
"--tls-port", "6380",
"--tls-cert-file", "/tls/server.crt",
"--tls-key-file", "/tls/server-key.key",
"--tls-ca-cert-file", "/tls/ca.crt",
"--tls-auth-clients", "no",
]
volumes:
- ./tls:/tls
ports:
- 6379:6379
- 6380:6380