- Separate PHP Dockerfiles (dev/prod) with extensions and prod opcache/php.ini optimization - docker-compose-dev: PHP, PostgreSQL, Redis, Messenger, Mailpit, RedisInsight - docker-compose-prod: 2x PHP replicas, PgSQL master/slave with PgBouncer, 2x Messenger, Redis - Makefile with build/start/stop/purge commands - AGENT.md to restrict AI access to the repository Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
20 lines
460 B
INI
20 lines
460 B
INI
[databases]
|
|
e-ticket = host=db-master port=5432 dbname=e-ticket
|
|
e-ticket_readonly = host=db-slave port=5432 dbname=e-ticket
|
|
|
|
[pgbouncer]
|
|
listen_addr = 0.0.0.0
|
|
listen_port = 6432
|
|
auth_type = md5
|
|
auth_file = /etc/pgbouncer/userlist.txt
|
|
pool_mode = transaction
|
|
max_client_conn = 200
|
|
default_pool_size = 20
|
|
min_pool_size = 5
|
|
reserve_pool_size = 5
|
|
reserve_pool_timeout = 3
|
|
server_lifetime = 3600
|
|
server_idle_timeout = 600
|
|
log_connections = 0
|
|
log_disconnections = 0
|