fixed containers build with pgbouncer

This commit is contained in:
Yhael S
2024-07-15 22:27:17 -06:00
parent d0bfa83653
commit bf0448db33
4 changed files with 12 additions and 12 deletions

View File

@@ -50,7 +50,7 @@ DBFILTER=.*
# PgBouncer # PgBouncer
POOL_MODE=transaction POOL_MODE=transaction
MAX_CLIENT_CONN=500 MAX_CLIENT_CONN=500
ADMIN_USERS=postgres,dbuser,odoo ADMIN_USERS=postgres,odoo
# Logging # Logging
LOG_LEVEL=info LOG_LEVEL=info

View File

@@ -14,8 +14,8 @@ services:
pgbouncer: pgbouncer:
restart: 'no' restart: 'no'
ports: expose:
- 5432:5432 - 5432/tcp
nginx: nginx:
restart: 'no' restart: 'no'

View File

@@ -14,8 +14,8 @@ services:
pgbouncer: pgbouncer:
restart: unless-stopped restart: unless-stopped
ports: expose:
- 127.0.0.1=5432:5432 - 5432/tcp
nginx: nginx:
restart: unless-stopped restart: unless-stopped

View File

@@ -88,14 +88,14 @@ services:
container_name: pgbouncer container_name: pgbouncer
restart: always restart: always
depends_on: depends_on:
- db - postgres
environment: environment:
- DB_HOST=db - DB_HOST=${DB_HOST}
- DB_USER=odoo - DB_USER=${DB_USER}
- DB_PASSWORD=odoo - DB_PASSWORD=${DB_PASSWORD}
- MAX_CLIENT_CONN=500 - MAX_CLIENT_CONN=${MAX_CLIENT_CONN}
- POOL_MODE=transaction - POOL_MODE=${POOL_MODE}
- ADMIN_USERS=postgres,dbuser,odoo - ADMIN_USERS=${ADMIN_USERS}
profiles: [$PGBOUNCER_PROFILES] profiles: [$PGBOUNCER_PROFILES]
nginx: nginx: