Skip to main content

bloque-docker-dev

Docker Compose dev infrastructure for the Bloques ecosystem. Provides PostgreSQL 16, Redis 7, and ChromaDB with health-check utilities and environment helpers.

This is NOT app containerization. For production Docker, see bloque-docker-prod.

Services

Service Image Default Port Profile
PostgreSQL 16 postgres:16-alpine 5432 core, ai
Redis 7 redis:7-alpine 6379 core, ai
ChromaDB chromadb/chroma:latest 8000 ai

Quick Start

# Start core services (PostgreSQL + Redis)
docker compose -f packages/python/bloque-docker-dev/docker-compose.yml --profile core up -d

# Start all services including ChromaDB
docker compose -f packages/python/bloque-docker-dev/docker-compose.yml --profile ai up -d

# Stop everything
docker compose -f packages/python/bloque-docker-dev/docker-compose.yml --profile ai down

Environment Defaults

Copy .env.example to .env and adjust as needed. All values have sensible defaults for local development.

Python API

Load environment variables

from bloque_docker_dev.env import load_dev_env

# Sets DATABASE_URL, REDIS_URL, CHROMADB_URL if not already set
defaults = load_dev_env()
print(defaults.postgres_url)

Health checks

import asyncio
from bloque_docker_dev.health import check_services, wait_for_services

# One-shot check
status = asyncio.run(check_services())
# {"postgres": True, "redis": True, "chromadb": False}

# Wait until all services are ready (raises TimeoutError if not)
status = asyncio.run(wait_for_services(max_wait=30.0))

Init SQL

The initdb/ directory contains SQL scripts that run on first PostgreSQL start:

  • 01-extensions.sql - Installs pgcrypto and uuid-ossp extensions
  • 02-rls-example.sql - Example RLS setup matching ulfblk-multitenant patterns

Volumes

Uses named volumes (not bind mounts) to avoid Windows/WSL permission issues:

  • pgdata - PostgreSQL data
  • redisdata - Redis AOF persistence
  • chromadata - ChromaDB collections

Dependencies

  • ulfblk-core (required)
  • httpx (HTTP health checks for ChromaDB)

Metadata

Release files for ulfblk-docker-dev 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ulfblk-docker-dev 0.1.0
File Size Uploaded
ulfblk_docker_dev-0.1.0.tar.gz 7.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ulfblk-docker-dev 0.1.0
File Interpreter ABI Platform
ulfblk_docker_dev-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.0 kB

Release files / ulfblk_docker_dev-0.1.0.tar.gz

Download URL ulfblk_docker_dev-0.1.0.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
92d0ba0d58dd4f9684cf2719d8511d56bd766b8c9a95f754040935692cda8802
BLAKE2b-256 checksum
How to use checksums
04227eb865fd9cff6e2e93fa49a29b1de5f2b60434281c3f660321f9e84da519
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / ulfblk_docker_dev-0.1.0-py3-none-any.whl

Download URL ulfblk_docker_dev-0.1.0-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
855d6aebb5edd025631f9d1a9d78be491135de6e0b0e8a84b8583ec4e045a793
BLAKE2b-256 checksum
How to use checksums
0d2c59c54bbfd1ecfefc7ef2b42daabbb3d8053fbce92b68d1858ddf59799429
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page