fix min connection
This commit is contained in:
@@ -16,7 +16,8 @@
|
||||
# ---- PostgreSQL ----
|
||||
DB_USER=ems_user
|
||||
DB_PASSWORD=change_me_strong_password
|
||||
|
||||
# Limit současných připojení k DB (deploy/docker-compose + kořenové docker-compose). Výchozí v compose je 300.
|
||||
# POSTGRES_MAX_CONNECTIONS=300
|
||||
# ---- PostgREST ----
|
||||
POSTGREST_JWT_SECRET=change_me_jwt_secret_min_32_chars
|
||||
# PostgREST anonymní role (viz db/migration/V009__postgrest_roles.sql + R__z_postgrest_ems_anon_grants.sql).
|
||||
|
||||
@@ -10,6 +10,11 @@ services:
|
||||
db:
|
||||
image: timescale/timescaledb:2.26.1-pg18
|
||||
restart: unless-stopped
|
||||
# Výchozí max_connections=100 snadno nestačí (PostgREST, backend, psql, IDE, MCP). Zvýšení přes .env.
|
||||
command:
|
||||
- postgres
|
||||
- -c
|
||||
- max_connections=${POSTGRES_MAX_CONNECTIONS:-100}
|
||||
environment:
|
||||
POSTGRES_DB: ems
|
||||
POSTGRES_USER: ${DB_USER}
|
||||
|
||||
@@ -3,6 +3,10 @@ services:
|
||||
db:
|
||||
image: timescale/timescaledb:2.26.1-pg18
|
||||
restart: unless-stopped
|
||||
command:
|
||||
- postgres
|
||||
- -c
|
||||
- max_connections=${POSTGRES_MAX_CONNECTIONS:-300}
|
||||
environment:
|
||||
POSTGRES_DB: ems
|
||||
POSTGRES_USER: ${DB_USER}
|
||||
|
||||
Reference in New Issue
Block a user