PostgreSQL container with advanced query optimization extensions
601
A specialized Docker project for PostgreSQL with advanced extensions for query optimization and index management.
š Source Code: GitHubā | š³ Docker Hub: weltondev/stackauth-dbā
This project was developed with the following technologies:
Before you begin, you need to have the following installed on your machine:
git clone https://github.com/your-username/stackauth-db.git
cd stackauth-db
.env file with the following variables:POSTGRES_USER=your_username
POSTGRES_PASSWORD=your_password
docker-compose up -d
The database can be configured through environment variables in the docker-compose.yml file. Below are the main available configurations:
POSTGRES_MAX_CONNECTIONS: Maximum number of simultaneous connections (default: 100)POSTGRES_SHARED_BUFFERS: Shared memory for cache (default: 256MB)POSTGRES_EFFECTIVE_CACHE_SIZE: Operating system cache estimate (default: 768MB)POSTGRES_WORK_MEM: Memory for sorting operations (default: 4MB)POSTGRES_MAINTENANCE_WORK_MEM: Memory for maintenance operations (default: 64MB)POSTGRES_WAL_BUFFERS: WAL buffer size (default: 16MB)POSTGRES_MIN_WAL_SIZE: Minimum WAL files size (default: 80MB)POSTGRES_MAX_WAL_SIZE: Maximum WAL files size (default: 1GB)POSTGRES_WAL_LEVEL: WAL detail level (default: logical)POSTGRES_MAX_WORKER_PROCESSES: Maximum number of worker processes (default: 8)POSTGRES_MAX_PARALLEL_WORKERS: Maximum number of parallel workers (default: 8)POSTGRES_MAX_PARALLEL_WORKERS_PER_GATHER: Workers per gather operation (default: 2)POSTGRES_MAX_PARALLEL_MAINTENANCE_WORKERS: Workers for maintenance (default: 2)POSTGRES_CHECKPOINT_COMPLETION_TARGET: Checkpoint completion target (default: 0.9)POSTGRES_STATISTICS_TARGET: Statistics detail level (default: 100)POSTGRES_RANDOM_PAGE_COST: Estimated random read cost (default: 1.1)POSTGRES_IO_CONCURRENCY: Number of concurrent I/O operations (default: 200)POSTGRES_AUTOVACUUM: Enable/disable autovacuum (default: on)POSTGRES_MAX_CONNECTIONS=200
POSTGRES_SHARED_BUFFERS=1GB
POSTGRES_EFFECTIVE_CACHE_SIZE=3GB
POSTGRES_WORK_MEM=16MB
stackauth-db/
āāā .github/
ā āāā workflows/ # GitHub Actions configurations
āāā postgres/ # PostgreSQL configurations
āāā dockerfile # PostgreSQL container configuration
āāā docker-compose.yml # Container orchestration
āāā README.md
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)This project is under the MIT license. See the LICENSEā file for more details.
Content type
Image
Digest
sha256:03a58b716ā¦
Size
144.1 MB
Last updated
almost 2 years ago
docker pull weltondev/stackauth-db