God Mode: Add Redis Service to Docker Compose
This commit is contained in:
@@ -9,9 +9,10 @@ services:
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- DATABASE_URL=${DATABASE_URL}
|
||||
- REDIS_URL=${REDIS_URL}
|
||||
# Default to local redis container if no external URL provided
|
||||
- REDIS_URL=${REDIS_URL:-redis://redis:6379}
|
||||
- GOD_MODE_TOKEN=${GOD_MODE_TOKEN}
|
||||
# GOD MODE LIMITS:
|
||||
# GOD MODE LIMITS (100k Scale):
|
||||
ulimits:
|
||||
nofile:
|
||||
soft: 65536
|
||||
@@ -26,3 +27,22 @@ services:
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
depends_on:
|
||||
- redis
|
||||
|
||||
# Redis is REQUIRED for the Batch Processor (BullMQ)
|
||||
# Included here so God Mode works standalone.
|
||||
redis:
|
||||
image: 'redis:7-alpine'
|
||||
command: 'redis-server --appendonly yes'
|
||||
restart: always
|
||||
volumes:
|
||||
- 'god-mode-redis:/data'
|
||||
healthcheck:
|
||||
test: [ "CMD", "redis-cli", "ping" ]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
volumes:
|
||||
god-mode-redis:
|
||||
|
||||
Reference in New Issue
Block a user