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
|
# 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
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ services:
|
|||||||
|
|
||||||
pgbouncer:
|
pgbouncer:
|
||||||
restart: 'no'
|
restart: 'no'
|
||||||
ports:
|
expose:
|
||||||
- 5432:5432
|
- 5432/tcp
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
restart: 'no'
|
restart: 'no'
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user