Skip to main content

Database & Infrastructure

Cracker utilizes a robust local infrastructure managed via Docker Compose. This ensures that all necessary databases and caching services are available without manual installation.

Services Overview​

The platform relies on three primary backend services:

ServiceTypePortUsage
PostgreSQLRelational DB5432Primary application data (Users, Metrics).
MongoDBNoSQL DB27017Unstructured data and logs.
RedisKey-Value Store6379Caching and session storage.

Access & Credentials​

For local development, the following credentials are pre-configured in the docker-compose setup:

PostgreSQL​

  • User: postgres
  • Password: postgres
  • Database: postgres
  • Port: 5432

MongoDB​

  • User: mongo
  • Password: mongo
  • Port: 27017

Redis​

  • Port: 6379
  • (No default password for local dev)

Administration Tools​

The project includes web-based administration tools for managing the databases. These are started automatically with yarn start:server.

pgAdmin (PostgreSQL)​

Mongo Express (MongoDB)​

  • URL: http://localhost:8081
  • Credentials: (Check docker-compose.yml if prompted, usually admin / pass or similar defaults).

Management Commands​

  • Start Services: yarn start:server
  • Access Postgres Shell: yarn it:db
  • Access Redis CLI: yarn it:cache