services: postgres: image: ghcr.io/insforge/postgres-all:latest environment: - POSTGRES_USER=${POSTGRES_USER:-postgres} - POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-postgres} - POSTGRES_DB=${POSTGRES_DB:-insforge} - ENCRYPTION_KEY=${ENCRYPTION_KEY:-${JWT_SECRET:-dev-secret-please-change-in-production}} volumes: - postgres-data:/var/lib/postgresql/data ports: - "${POSTGRES_PORT:-5432}:5432" networks: - insforge-network healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] interval: 5s timeout: 5s retries: 5 postgrest: image: postgrest/postgrest:v12.2.12 restart: unless-stopped environment: PGRST_DB_URI: postgres://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD:-postgres}@postgres:5432/${POSTGRES_DB:-insforge} PGRST_OPENAPI_SERVER_PROXY_URI: http://localhost:3000 PGRST_DB_SCHEMA: public PGRST_DB_ANON_ROLE: anon PGRST_JWT_SECRET: ${JWT_SECRET:-dev-secret-please-change-in-production} # Enable schema reloading via NOTIFY PGRST_DB_CHANNEL_ENABLED: true PGRST_DB_CHANNEL: pgrst ports: - "${POSTGREST_PORT:-5430}:3000" depends_on: postgres: condition: service_healthy healthcheck: test: ["CMD-SHELL", "bash -c '