feat: migrate from Redis to SQLite for event handling and notifications

This commit is contained in:
Arunavo Ray
2025-05-20 19:09:48 +05:30
parent c179953649
commit 6d13ff29ca
17 changed files with 470 additions and 202 deletions

View File

@@ -51,7 +51,6 @@ services:
- gitea-mirror-data:/app/data
depends_on:
- gitea
- redis
environment:
- NODE_ENV=development
- DATABASE_URL=file:data/gitea-mirror.db
@@ -75,7 +74,6 @@ services:
- GITEA_ORGANIZATION=${GITEA_ORGANIZATION:-github-mirrors}
- GITEA_ORG_VISIBILITY=${GITEA_ORG_VISIBILITY:-public}
- DELAY=${DELAY:-3600}
- REDIS_URL=redis://redis:6379
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:4321/"]
interval: 30s
@@ -85,16 +83,7 @@ services:
networks:
- gitea-network
redis:
image: redis:7-alpine
container_name: redis
restart: unless-stopped
ports:
- "6379:6379"
volumes:
- redis-data:/data
networks:
- gitea-network
# Define named volumes for data persistence
volumes:
@@ -102,8 +91,6 @@ volumes:
gitea-config: # Gitea config volume
gitea-mirror-data: # Gitea Mirror database volume
redis-data:
# Define networks
networks:
gitea-network: