mirror of
https://github.com/odoocker/odoocker
synced 2025-11-04 23:29:19 +01:00
feat(docker): Integrate PgBouncer for connection poolingAdd PgBouncer service to the docker-compose setup for improved database connection management. Update .env.example to include new PgBouncer environment variables and service inclusion. Add PgBouncer profiles and tags to docker-compose.yml and override files for local and production configurations. Include PgBouncer initialization script for database user setup
This commit is contained in:
@@ -79,6 +79,23 @@ services:
|
||||
- internal
|
||||
profiles: [$POSTGRES_PROFILES]
|
||||
|
||||
pgbouncer:
|
||||
image: edoburu/pgbouncer:latest
|
||||
container_name: pgbouncer
|
||||
restart: always
|
||||
depends_on:
|
||||
- db
|
||||
#ports:
|
||||
# - "5432:5432"
|
||||
environment:
|
||||
- DB_HOST=db
|
||||
- DB_USER=odoo
|
||||
- DB_PASSWORD=odoo
|
||||
- MAX_CLIENT_CONN=500
|
||||
- POOL_MODE=transaction
|
||||
- ADMIN_USERS=postgres,dbuser,odoo
|
||||
profiles: [$PGBOUNCER_PROFILES]
|
||||
|
||||
nginx:
|
||||
image: nginx:${NGINX_TAG}
|
||||
depends_on:
|
||||
|
||||
Reference in New Issue
Block a user