CD/CD consolidation
This commit is contained in:
31
devops/database/local-postgres/docker-compose.yml
Normal file
31
devops/database/local-postgres/docker-compose.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
version: "3.9"
|
||||
|
||||
services:
|
||||
stella-postgres:
|
||||
image: postgres:17
|
||||
container_name: stella-postgres
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_USER: stella
|
||||
POSTGRES_PASSWORD: stella
|
||||
POSTGRES_DB: stella
|
||||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
- stella-postgres-data:/var/lib/postgresql/data
|
||||
- ./init:/docker-entrypoint-initdb.d:ro
|
||||
command:
|
||||
- "postgres"
|
||||
- "-c"
|
||||
- "shared_preload_libraries=pg_stat_statements"
|
||||
- "-c"
|
||||
- "pg_stat_statements.track=all"
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
volumes:
|
||||
stella-postgres-data:
|
||||
driver: local
|
||||
17
devops/database/local-postgres/init/01-extensions.sql
Normal file
17
devops/database/local-postgres/init/01-extensions.sql
Normal file
@@ -0,0 +1,17 @@
|
||||
-- Enable pg_stat_statements extension for query performance analysis
|
||||
CREATE EXTENSION IF NOT EXISTS pg_stat_statements;
|
||||
|
||||
-- Enable other useful extensions
|
||||
CREATE EXTENSION IF NOT EXISTS pg_trgm; -- Fuzzy text search
|
||||
CREATE EXTENSION IF NOT EXISTS btree_gin; -- GIN indexes for scalar types
|
||||
CREATE EXTENSION IF NOT EXISTS pgcrypto; -- Cryptographic functions
|
||||
|
||||
-- Create schemas for all modules
|
||||
CREATE SCHEMA IF NOT EXISTS authority;
|
||||
CREATE SCHEMA IF NOT EXISTS vuln;
|
||||
CREATE SCHEMA IF NOT EXISTS vex;
|
||||
CREATE SCHEMA IF NOT EXISTS scheduler;
|
||||
CREATE SCHEMA IF NOT EXISTS notify;
|
||||
CREATE SCHEMA IF NOT EXISTS policy;
|
||||
CREATE SCHEMA IF NOT EXISTS concelier;
|
||||
CREATE SCHEMA IF NOT EXISTS audit;
|
||||
Reference in New Issue
Block a user