Skip to main content

Local Full Deployment

Get Safebucket running locally with the full infrastructure stack using Docker Compose. This deployment includes all services (caching, event streaming, email testing, and activity logging) for a production-like environment.

Prerequisites

  • Docker and Docker Compose
  • Git for cloning the repository
  • At least 1GB RAM available for containers

Quick Start

  1. Clone the repository:

    git clone https://github.com/safebucket/safebucket
    cd safebucket/deployments/local/full
  2. Start the services:

    docker compose up -d
  3. Verify the deployment:

    docker compose ps

Services Overview

The local deployment includes the following services:

ServicePortPurpose
Safebucket8080Main application (API + Web)
PostgreSQL5432Main database
RustFS API9000Object storage API
Valkey6379Caching layer
NATS4222Event streaming
Loki3100Activity logging
Mailpit Web8025, 1025Email testing (Web UI + SMTP)

Default Credentials

Application

Infrastructure

  • RustFS Storage:

  • Database:

    • Host: localhost:5432
    • Username: safebucket-user
    • Password: safebucket-password
    • Database: safebucket
  • Valkey:

    • Host: localhost:6379
    • Password: safebucket-password
  • Mailpit (Email Testing):

Configuration Files

The local deployment uses these configuration files:

  • .env: Environment variables for Docker Compose
  • docker-compose.yml: Service definitions
  • config/loki.yaml: Loki configuration for logging

Next Steps