Skip to content

Commit a993b60

Browse files
committed
add redis
1 parent c9b4f82 commit a993b60

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

docker-compose.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
version: "3"
22

33
services:
4-
# redis:
5-
# image: redis:alpine
6-
# command: ['redis-server', '--bind', '0.0.0.0', '--port', '6379']
7-
# ports:
8-
# - '6379:6379'
4+
redis:
5+
image: redis:latest
6+
ports:
7+
- 6379:6379
8+
volumes:
9+
- ./data/redis:/data
910

1011
backend:
1112
build:

render.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,10 @@ services:
77
envVars:
88
- key: RAILS_MASTER_KEY
99
sync: false
10+
11+
- type: redis
12+
name: nextjs-rails-redis
13+
region: singapore
14+
plan: free
15+
maxmemoryPolicy: allkeys-lru
16+
ipAllowList: []

0 commit comments

Comments
 (0)