Commit 9784faa
committed
feat(infra): self-host Redis on spoonet, drop managed Redis Cloud
- redis:7-alpine container, 512mb maxmemory, allkeys-lru eviction
- No persistence (cache rebuildable from Mongo)
- Static IP 172.30.0.40 on spoonet
- App depends_on redis healthy
- Drops Redis Cloud free tier dependency
- ~3-5ms latency win per cache lookup vs managed (network hop eliminated)
- Survives VPS reboot via redis-data volume
REDIS_URI on VPS swapped to redis://redis:6379/0 in .env.production.
Old managed URL stays in .env.production.bak.* for emergency revert.1 parent c448051 commit 9784faa
1 file changed
Lines changed: 39 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| |||
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
34 | 70 | | |
35 | 71 | | |
36 | 72 | | |
| |||
76 | 112 | | |
77 | 113 | | |
78 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
79 | 118 | | |
80 | 119 | | |
81 | 120 | | |
| |||
0 commit comments