From c019d33a4ee1d1b82f5ca5d02cea6f16f3002247 Mon Sep 17 00:00:00 2001 From: Clawd Date: Thu, 5 Mar 2026 19:43:50 +0000 Subject: [PATCH] Add minimal compose for initial database setup --- docker-compose.minimal.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 docker-compose.minimal.yml diff --git a/docker-compose.minimal.yml b/docker-compose.minimal.yml new file mode 100644 index 0000000..753f895 --- /dev/null +++ b/docker-compose.minimal.yml @@ -0,0 +1,37 @@ +services: + postgres: + image: pgvector/pgvector:pg16 + container_name: second-brain-postgres + restart: unless-stopped + environment: + POSTGRES_DB: second_brain + POSTGRES_USER: brain + POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-braindb2026} + volumes: + - postgres_data:/var/lib/postgresql/data + ports: + - "5433:5432" + networks: + - brain-net + healthcheck: + test: ["CMD-SHELL", "pg_isready -U brain -d second_brain"] + interval: 10s + timeout: 5s + retries: 5 + + redis: + image: redis:7-alpine + container_name: second-brain-redis + restart: unless-stopped + volumes: + - redis_data:/data + networks: + - brain-net + +volumes: + postgres_data: + redis_data: + +networks: + brain-net: + driver: bridge