chore: remove MongoDB service, packages and transfer tooling (MITHOME-136)

The staging site runs on PostgreSQL since 2026-09-29. Drop the mongodb
compose service/volume, the mongodb/mongoose/@payloadcms/db-mongodb
packages, the one-off transfer script and its helpers, the mongodump
block in deploy.sh and the Mongo jest mock. Docs updated.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Do Siki
2026-10-03 21:16:55 +02:00
co-authored by Claude Sonnet 5.5
parent b3b0347787
commit e14a987bf3
22 changed files with 18 additions and 840 deletions
-21
View File
@@ -76,30 +76,9 @@ services:
- mozdit-network
restart: unless-stopped
# MongoDB — MITHOME-136: no longer used by the app. Kept for one release as
# the rollback path and the source of the one-off content transfer
# (proto/scripts/transfer-content.ts); remove afterwards (tasks 4.3).
mongodb:
image: mongo:7.0
container_name: mozdit-mongodb-prod
ports:
- "127.0.0.1:27018:27017" # Belső port, nem publikus az internet felé
environment:
- MONGO_INITDB_ROOT_USERNAME=${MONGO_ROOT_USER:-admin}
# No weak default password: a missing value must fail the container loudly.
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_ROOT_PASSWORD}
- MONGO_INITDB_DATABASE=mozdit
volumes:
- mongodb_data_prod:/data/db
networks:
- mozdit-network
restart: always
volumes:
postgres_data_prod:
driver: local
mongodb_data_prod:
driver: local
media_data_prod:
driver: local