mirror of
https://github.com/odoocker/odoocker
synced 2025-11-04 15:19:22 +01:00
fixed containers build with pgbouncer
This commit is contained in:
@@ -50,7 +50,7 @@ DBFILTER=.*
|
||||
# PgBouncer
|
||||
POOL_MODE=transaction
|
||||
MAX_CLIENT_CONN=500
|
||||
ADMIN_USERS=postgres,dbuser,odoo
|
||||
ADMIN_USERS=postgres,odoo
|
||||
|
||||
# Logging
|
||||
LOG_LEVEL=info
|
||||
|
||||
@@ -14,8 +14,8 @@ services:
|
||||
|
||||
pgbouncer:
|
||||
restart: 'no'
|
||||
ports:
|
||||
- 5432:5432
|
||||
expose:
|
||||
- 5432/tcp
|
||||
|
||||
nginx:
|
||||
restart: 'no'
|
||||
|
||||
@@ -14,8 +14,8 @@ services:
|
||||
|
||||
pgbouncer:
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 127.0.0.1=5432:5432
|
||||
expose:
|
||||
- 5432/tcp
|
||||
|
||||
nginx:
|
||||
restart: unless-stopped
|
||||
|
||||
@@ -88,14 +88,14 @@ services:
|
||||
container_name: pgbouncer
|
||||
restart: always
|
||||
depends_on:
|
||||
- db
|
||||
- postgres
|
||||
environment:
|
||||
- DB_HOST=db
|
||||
- DB_USER=odoo
|
||||
- DB_PASSWORD=odoo
|
||||
- MAX_CLIENT_CONN=500
|
||||
- POOL_MODE=transaction
|
||||
- ADMIN_USERS=postgres,dbuser,odoo
|
||||
- DB_HOST=${DB_HOST}
|
||||
- DB_USER=${DB_USER}
|
||||
- DB_PASSWORD=${DB_PASSWORD}
|
||||
- MAX_CLIENT_CONN=${MAX_CLIENT_CONN}
|
||||
- POOL_MODE=${POOL_MODE}
|
||||
- ADMIN_USERS=${ADMIN_USERS}
|
||||
profiles: [$PGBOUNCER_PROFILES]
|
||||
|
||||
nginx:
|
||||
|
||||
Reference in New Issue
Block a user