Skip to content

Commit

Permalink
Merge pull request #178 from cupcakearmy/176-ram-only
Browse files Browse the repository at this point in the history
update docs about ram only redis
  • Loading branch information
cupcakearmy authored Feb 27, 2025
2 parents a248440 + c53cde6 commit 096be03
Show file tree
Hide file tree
Showing 14 changed files with 136 additions and 95 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v22.7.0
v22.14.0
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN pnpm run build


# BACKEND
FROM rust:1.80-alpine as backend
FROM rust:1.85-alpine as backend
WORKDIR /tmp
RUN apk add --no-cache libc-dev openssl-dev alpine-sdk
COPY ./packages/backend ./
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,11 @@ version: '3.8'
services:
redis:
image: redis:7-alpine
# Set a size limit. See link below on how to customise.
# This is required to stay in RAM only.
command: redis-server --save "" --appendonly no
# Additionally, you can set a size limit. See link below on how to customise.
# https://redis.io/docs/manual/eviction/
# command: redis-server --maxmemory 1gb --maxmemory-policy allkeys-lru
# --maxmemory 1gb --maxmemory-policy allkeys-lru

app:
image: cupcakearmy/cryptgeon:latest
Expand Down
6 changes: 4 additions & 2 deletions README_ES.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,11 @@ version: '3.8'
services:
redis:
image: redis:7-alpine
# Set a size limit. See link below on how to customise.
# This is required to stay in RAM only.
command: redis-server --save "" --appendonly no
# Additionally, you can set a size limit. See link below on how to customise.
# https://redis.io/docs/manual/eviction/
# command: redis-server --maxmemory 1gb --maxmemory-policy allkeys-lru
# --maxmemory 1gb --maxmemory-policy allkeys-lru

app:
image: cupcakearmy/cryptgeon:latest
Expand Down
6 changes: 5 additions & 1 deletion README_zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,11 @@ networks:
services:
redis:
image: redis:7-alpine
restart: unless-stopped
# This is required to stay in RAM only.
command: redis-server --save "" --appendonly no
# Additionally, you can set a size limit. See link below on how to customise.
# https://redis.io/docs/manual/eviction/
# --maxmemory 1gb --maxmemory-policy allkeys-lru
app:
image: cupcakearmy/cryptgeon:latest
Expand Down
5 changes: 5 additions & 0 deletions docker-compose.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
services:
redis:
image: redis:7-alpine
# This is required to stay in RAM only.
command: redis-server --save "" --appendonly no
# Additionally, you can set a size limit. See link below on how to customise.
# https://redis.io/docs/manual/eviction/
# --maxmemory 1gb --maxmemory-policy allkeys-lrulpine
ports:
- 6379:6379

Expand Down
7 changes: 6 additions & 1 deletion examples/nginx/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@ version: '3.8'
services:
redis:
image: redis:7-alpine
# This is required to stay in RAM only.
command: redis-server --save "" --appendonly no
# Additionally, you can set a size limit. See link below on how to customise.
# https://redis.io/docs/manual/eviction/
# --maxmemory 1gb --maxmemory-policy allkeys-lru

app:
image: cupcakearmy/cryptgeon:latest
depends_on:
- redis

proxy:
image: nginx:alpine
depends_on:
Expand Down
6 changes: 5 additions & 1 deletion examples/scratch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,11 @@ networks:
services:
redis:
image: redis:7-alpine
restart: unless-stopped
# This is required to stay in RAM only.
command: redis-server --save "" --appendonly no
# Additionally, you can set a size limit. See link below on how to customise.
# https://redis.io/docs/manual/eviction/
# --maxmemory 1gb --maxmemory-policy allkeys-lru

app:
image: cupcakearmy/cryptgeon:latest
Expand Down
6 changes: 5 additions & 1 deletion examples/traefik/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ networks:
services:
redis:
image: redis:7-alpine
restart: unless-stopped
# This is required to stay in RAM only.
command: redis-server --save "" --appendonly no
# Additionally, you can set a size limit. See link below on how to customise.
# https://redis.io/docs/manual/eviction/
# --maxmemory 1gb --maxmemory-policy allkeys-lru

app:
image: cupcakearmy/cryptgeon:latest
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
"npm-run-all": "^4.1.5",
"shelljs": "^0.8.5"
},
"packageManager": "pnpm@9.15.4"
"packageManager": "pnpm@10.3.0"
}
Loading

0 comments on commit 096be03

Please sign in to comment.