Skip to content

Commit 096be03

Browse files
authored
Merge pull request #178 from cupcakearmy/176-ram-only
update docs about ram only redis
2 parents a248440 + c53cde6 commit 096be03

File tree

14 files changed

+136
-95
lines changed

14 files changed

+136
-95
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v22.7.0
1+
v22.14.0

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ RUN pnpm run build
1111

1212

1313
# BACKEND
14-
FROM rust:1.80-alpine as backend
14+
FROM rust:1.85-alpine as backend
1515
WORKDIR /tmp
1616
RUN apk add --no-cache libc-dev openssl-dev alpine-sdk
1717
COPY ./packages/backend ./

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,11 @@ version: '3.8'
106106
services:
107107
redis:
108108
image: redis:7-alpine
109-
# Set a size limit. See link below on how to customise.
109+
# This is required to stay in RAM only.
110+
command: redis-server --save "" --appendonly no
111+
# Additionally, you can set a size limit. See link below on how to customise.
110112
# https://redis.io/docs/manual/eviction/
111-
# command: redis-server --maxmemory 1gb --maxmemory-policy allkeys-lru
113+
# --maxmemory 1gb --maxmemory-policy allkeys-lru
112114

113115
app:
114116
image: cupcakearmy/cryptgeon:latest

README_ES.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,11 @@ version: '3.8'
9191
services:
9292
redis:
9393
image: redis:7-alpine
94-
# Set a size limit. See link below on how to customise.
94+
# This is required to stay in RAM only.
95+
command: redis-server --save "" --appendonly no
96+
# Additionally, you can set a size limit. See link below on how to customise.
9597
# https://redis.io/docs/manual/eviction/
96-
# command: redis-server --maxmemory 1gb --maxmemory-policy allkeys-lru
98+
# --maxmemory 1gb --maxmemory-policy allkeys-lru
9799

98100
app:
99101
image: cupcakearmy/cryptgeon:latest

README_zh-CN.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,11 @@ networks:
108108
services:
109109
redis:
110110
image: redis:7-alpine
111-
restart: unless-stopped
111+
# This is required to stay in RAM only.
112+
command: redis-server --save "" --appendonly no
113+
# Additionally, you can set a size limit. See link below on how to customise.
114+
# https://redis.io/docs/manual/eviction/
115+
# --maxmemory 1gb --maxmemory-policy allkeys-lru
112116
113117
app:
114118
image: cupcakearmy/cryptgeon:latest

docker-compose.dev.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
services:
55
redis:
66
image: redis:7-alpine
7+
# This is required to stay in RAM only.
8+
command: redis-server --save "" --appendonly no
9+
# Additionally, you can set a size limit. See link below on how to customise.
10+
# https://redis.io/docs/manual/eviction/
11+
# --maxmemory 1gb --maxmemory-policy allkeys-lrulpine
712
ports:
813
- 6379:6379
914

examples/nginx/docker-compose.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,17 @@ version: '3.8'
33
services:
44
redis:
55
image: redis:7-alpine
6+
# This is required to stay in RAM only.
7+
command: redis-server --save "" --appendonly no
8+
# Additionally, you can set a size limit. See link below on how to customise.
9+
# https://redis.io/docs/manual/eviction/
10+
# --maxmemory 1gb --maxmemory-policy allkeys-lru
611

712
app:
813
image: cupcakearmy/cryptgeon:latest
914
depends_on:
1015
- redis
11-
16+
1217
proxy:
1318
image: nginx:alpine
1419
depends_on:

examples/scratch/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,11 @@ networks:
109109
services:
110110
redis:
111111
image: redis:7-alpine
112-
restart: unless-stopped
112+
# This is required to stay in RAM only.
113+
command: redis-server --save "" --appendonly no
114+
# Additionally, you can set a size limit. See link below on how to customise.
115+
# https://redis.io/docs/manual/eviction/
116+
# --maxmemory 1gb --maxmemory-policy allkeys-lru
113117

114118
app:
115119
image: cupcakearmy/cryptgeon:latest

examples/traefik/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ networks:
1818
services:
1919
redis:
2020
image: redis:7-alpine
21-
restart: unless-stopped
21+
# This is required to stay in RAM only.
22+
command: redis-server --save "" --appendonly no
23+
# Additionally, you can set a size limit. See link below on how to customise.
24+
# https://redis.io/docs/manual/eviction/
25+
# --maxmemory 1gb --maxmemory-policy allkeys-lru
2226

2327
app:
2428
image: cupcakearmy/cryptgeon:latest

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
"npm-run-all": "^4.1.5",
1818
"shelljs": "^0.8.5"
1919
},
20-
"packageManager": "pnpm@9.15.4"
20+
"packageManager": "pnpm@10.3.0"
2121
}

0 commit comments

Comments
 (0)