Skip to content

Commit

Permalink
Merge pull request #31 from akai-org/redis
Browse files Browse the repository at this point in the history
added redis to docker
  • Loading branch information
olalyska authored Jan 3, 2024
2 parents 92a5b8f + a4039fd commit de707f4
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
12 changes: 12 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
version: "3.9"
services:
redis:
container_name: loveletter-redis
build:
context: ./redis
dockerfile: Dockerfile
command: redis-server ./redis/redis.conf
ports:
- "6379:6379"
volumes:
- ./redis:/redis:ro
- ./redis/redis.conf:$PWD/redis/redis.conf

api:
container_name: loveletter-backend
build:
Expand Down
7 changes: 7 additions & 0 deletions redis/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM alpine:3.18

RUN apk add --no-cache redis

EXPOSE 6379

CMD ["redis-server", "$PWD/redis/redis.conf"]
2 changes: 2 additions & 0 deletions redis/redis.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
requirepass admin
maxmemory 1024mb

0 comments on commit de707f4

Please sign in to comment.