feat: expose Redis externally with password auth for AI dev stream access
- Add requirepass to Redis with REDIS_PASSWORD env var - Expose port 6379:6379 for external connections - Update REDIS_URL in api and worker to include password - Update healthcheck to pass auth flag Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -18,10 +18,15 @@ services:
|
|||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: redis:7-alpine
|
image: redis:7-alpine
|
||||||
|
command: redis-server --requirepass ${REDIS_PASSWORD}
|
||||||
|
ports:
|
||||||
|
- '6379:6379'
|
||||||
|
environment:
|
||||||
|
REDIS_PASSWORD: ${REDIS_PASSWORD}
|
||||||
volumes:
|
volumes:
|
||||||
- redis_data:/data
|
- redis_data:/data
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ['CMD', 'redis-cli', 'ping']
|
test: ['CMD-SHELL', 'redis-cli -a $REDIS_PASSWORD ping']
|
||||||
interval: 5s
|
interval: 5s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 5
|
||||||
@@ -56,7 +61,7 @@ services:
|
|||||||
- traefik.http.services.tower-api.loadbalancer.server.port=3001
|
- traefik.http.services.tower-api.loadbalancer.server.port=3001
|
||||||
environment:
|
environment:
|
||||||
DATABASE_URL: postgresql://tower:${DB_PASSWORD}@postgres:5432/tower
|
DATABASE_URL: postgresql://tower:${DB_PASSWORD}@postgres:5432/tower
|
||||||
REDIS_URL: redis://redis:6379
|
REDIS_URL: redis://:${REDIS_PASSWORD}@redis:6379
|
||||||
MEILI_URL: http://meilisearch:7700
|
MEILI_URL: http://meilisearch:7700
|
||||||
MEILI_MASTER_KEY: ${MEILI_MASTER_KEY}
|
MEILI_MASTER_KEY: ${MEILI_MASTER_KEY}
|
||||||
JWT_SECRET: ${JWT_SECRET}
|
JWT_SECRET: ${JWT_SECRET}
|
||||||
@@ -89,7 +94,7 @@ services:
|
|||||||
dockerfile: apps/worker/Dockerfile
|
dockerfile: apps/worker/Dockerfile
|
||||||
environment:
|
environment:
|
||||||
DATABASE_URL: postgresql://tower:${DB_PASSWORD}@postgres:5432/tower
|
DATABASE_URL: postgresql://tower:${DB_PASSWORD}@postgres:5432/tower
|
||||||
REDIS_URL: redis://redis:6379
|
REDIS_URL: redis://:${REDIS_PASSWORD}@redis:6379
|
||||||
MEILI_URL: http://meilisearch:7700
|
MEILI_URL: http://meilisearch:7700
|
||||||
MEILI_MASTER_KEY: ${MEILI_MASTER_KEY}
|
MEILI_MASTER_KEY: ${MEILI_MASTER_KEY}
|
||||||
JWT_SECRET: ${JWT_SECRET}
|
JWT_SECRET: ${JWT_SECRET}
|
||||||
|
|||||||
Reference in New Issue
Block a user