mirror of
https://github.com/tiennm99/store-scraper-bot-java.git
synced 2026-05-26 10:01:25 +00:00
Migrate data storage from Couchbase to Redis
Replaces Couchbase with Redis for data persistence, updating environment variables, Docker Compose files, and repository logic. Removes Couchbase and Jackson dependencies, introduces Gson for JSON serialization, and refactors models and repositories to support Redis. Adds utility classes for Redis and Gson, and updates tests and scrapers to use Gson.
This commit is contained in:
+6
-12
@@ -1,18 +1,12 @@
|
||||
services:
|
||||
couchbase:
|
||||
image: couchbase:community-7.6.2
|
||||
env_file:
|
||||
- .env
|
||||
redis:
|
||||
image: redis:7.2-alpine
|
||||
ports:
|
||||
- "8091-8097:8091-8097"
|
||||
- "9123:9123"
|
||||
- "11207:11207"
|
||||
- "11210:11210"
|
||||
- "11280:11280"
|
||||
- "18091-18097:18091-18097"
|
||||
- "6379:6379"
|
||||
volumes:
|
||||
- couchbase_data:/opt/couchbase/var
|
||||
- redis_data:/data
|
||||
restart: unless-stopped
|
||||
command: redis-server --appendonly yes
|
||||
|
||||
volumes:
|
||||
couchbase_data:
|
||||
redis_data:
|
||||
Reference in New Issue
Block a user