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

Docker compose with build step

This commit is contained in:
Ruben Perez
2024-04-01 12:05:42 +02:00
committed by Marcelo
parent 122ffb20b2
commit 35276b6acb
3 changed files with 12 additions and 15 deletions

View File

@@ -222,7 +222,6 @@ jobs:
- name: Set up a Redis server
run: |
cd tools
chmod 777 tls/*
docker compose up -d --wait || (docker compose logs; exit 1)
- name: Setup Boost

11
tools/Dockerfile Normal file
View File

@@ -0,0 +1,11 @@
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,16 +1,3 @@
services:
redis:
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
build: .