Skip to content

Instantly share code, notes, and snippets.

View bhtz's full-sized avatar

Benjamin Heintz bhtz

View GitHub Profile
using Microsoft.Extensions.Configuration;
var builder = DistributedApplication.CreateBuilder(args);
#region Configuration
var isOllamaEnabled = builder.Configuration.GetValue<bool>("Ollama");
var isHasuraEnabled = builder.Configuration.GetValue<bool>("BaaS:Hasura");
var isDabEnabled = builder.Configuration.GetValue<bool>("BaaS:Dab");
var isDocEnabled = builder.Configuration.GetValue<bool>("Doc");
@bhtz
bhtz / gist:f60568ed02526d93a0c001f17e2373f0
Created August 18, 2025 17:25
Hasura 2.X docker compose
version: "3.8"
name: Microscope.Boilerplate
services:
postgres:
image: postgres:15
container_name: microscope_boilerplate_database
ports:
- "5432:5432"
restart: always
volumes: