@@ -7,7 +7,7 @@ The Hatchet server and engine can be configured via environment variables using
77Hatchet uses the following environment variable prefixes:
88
99- ** ` SERVER_ ` ** (173 variables) - Main server configuration including runtime, authentication, encryption, monitoring, and integrations
10- - ** ` DATABASE_ ` ** (15 variables) - PostgreSQL database connection and configuration
10+ - ** ` DATABASE_ ` ** (19 variables) - PostgreSQL database connection and configuration
1111- ** ` READ_REPLICA_ ` ** (4 variables) - Read replica database configuration
1212- ** ` ADMIN_ ` ** (3 variables) - Administrator user setup for initial seeding
1313- ** ` DEFAULT_ ` ** (3 variables) - Default tenant configuration
@@ -140,36 +140,40 @@ Variables marked with ⚠️ are conditionally required when specific features a
140140
141141## Database Configuration
142142
143- | Variable | Description | Default Value |
144- | ----------------------------- | ----------------------------------------------------- | ------------------- |
145- | ` DATABASE_URL ` | PostgreSQL connection string | ` 127.0.0.1 ` |
146- | ` DATABASE_POSTGRES_HOST ` | PostgreSQL host | ` 127.0.0.1 ` |
147- | ` DATABASE_POSTGRES_PORT ` | PostgreSQL port | ` 5431 ` |
148- | ` DATABASE_POSTGRES_USERNAME ` | PostgreSQL username | ` hatchet ` |
149- | ` DATABASE_POSTGRES_PASSWORD ` | PostgreSQL password | ` hatchet ` |
150- | ` DATABASE_POSTGRES_DB_NAME ` | PostgreSQL database name | ` hatchet ` |
151- | ` DATABASE_POSTGRES_SSL_MODE ` | PostgreSQL SSL mode | ` disable ` |
152- | ` DATABASE_MAX_CONNS ` | Max database connections | ` 50 ` |
153- | ` DATABASE_MIN_CONNS ` | Min database connections | ` 10 ` |
154- | ` DATABASE_MAX_QUEUE_CONNS ` | Max queue connections | ` 50 ` |
155- | ` DATABASE_MIN_QUEUE_CONNS ` | Min queue connections | ` 10 ` |
156- | ` DATABASE_MAX_CONN_LIFETIME ` | Max lifetime of a connection | ` 15m ` |
157- | ` DATABASE_MAX_CONN_IDLE_TIME ` | Max time a connection can be idle before being closed | ` 1m ` |
158- | ` DATABASE_LOG_QUERIES ` | Log database queries | ` false ` |
159- | ` CACHE_DURATION ` | Cache duration | ` 5s ` |
160- | ` ADMIN_EMAIL ` | Admin email for seeding | ` admin@example.com ` |
161- | ` ADMIN_PASSWORD ` | Admin password for seeding | ` Admin123!! ` |
162- | ` ADMIN_NAME ` | Admin name for seeding | ` Admin ` |
163- | ` DEFAULT_TENANT_NAME ` | Default tenant name | ` Default ` |
164- | ` DEFAULT_TENANT_SLUG ` | Default tenant slug | ` default ` |
165- | ` DEFAULT_TENANT_ID ` | Default tenant ID | |
166- | ` SEED_DEVELOPMENT ` | Development seeding flag | |
167- | ` READ_REPLICA_ENABLED ` | Enable read replica | ` false ` |
168- | ` READ_REPLICA_DATABASE_URL ` | Read replica database URL | |
169- | ` READ_REPLICA_MAX_CONNS ` | Read replica max connections | ` 50 ` |
170- | ` READ_REPLICA_MIN_CONNS ` | Read replica min connections | ` 10 ` |
171- | ` DATABASE_LOGGER_LEVEL ` | Database logger level | |
172- | ` DATABASE_LOGGER_FORMAT ` | Database logger format | |
143+ | Variable | Description | Default Value |
144+ | ----------------------------- | -------------------------------------------------------------------------- | ------------------- |
145+ | ` DATABASE_URL ` | PostgreSQL connection string | ` 127.0.0.1 ` |
146+ | ` DATABASE_POSTGRES_HOST ` | PostgreSQL host | ` 127.0.0.1 ` |
147+ | ` DATABASE_POSTGRES_PORT ` | PostgreSQL port | ` 5431 ` |
148+ | ` DATABASE_POSTGRES_USERNAME ` | PostgreSQL username | ` hatchet ` |
149+ | ` DATABASE_POSTGRES_PASSWORD ` | PostgreSQL password | ` hatchet ` |
150+ | ` DATABASE_POSTGRES_DB_NAME ` | PostgreSQL database name | ` hatchet ` |
151+ | ` DATABASE_POSTGRES_SSL_MODE ` | PostgreSQL SSL mode | ` disable ` |
152+ | ` DATABASE_MAX_CONNS ` | Max database connections | ` 50 ` |
153+ | ` DATABASE_MIN_CONNS ` | Min database connections | ` 10 ` |
154+ | ` DATABASE_MAX_QUEUE_CONNS ` | Max queue connections | ` 50 ` |
155+ | ` DATABASE_MIN_QUEUE_CONNS ` | Min queue connections | ` 10 ` |
156+ | ` DATABASE_MAX_CONN_LIFETIME ` | Max lifetime of a connection | ` 15m ` |
157+ | ` DATABASE_MAX_CONN_IDLE_TIME ` | Max time a connection can be idle before being closed | ` 1m ` |
158+ | ` DATABASE_LOG_QUERIES ` | Log database queries | ` false ` |
159+ | ` DATABASE_PGBOUNCER_ENABLED ` | Enable pgbouncer support; requires ` DATABASE_DIRECT_URL ` to be set | ` false ` |
160+ | ` DATABASE_DIRECT_URL ` | Direct PostgreSQL connection string bypassing pgbouncer for DDL operations | |
161+ | ` DATABASE_DIRECT_MAX_CONNS ` | Max connections for the direct (non-pgbouncer) pool | ` 2 ` |
162+ | ` DATABASE_DIRECT_MIN_CONNS ` | Min connections for the direct (non-pgbouncer) pool | ` 1 ` |
163+ | ` CACHE_DURATION ` | Cache duration | ` 5s ` |
164+ | ` ADMIN_EMAIL ` | Admin email for seeding | ` admin@example.com ` |
165+ | ` ADMIN_PASSWORD ` | Admin password for seeding | ` Admin123!! ` |
166+ | ` ADMIN_NAME ` | Admin name for seeding | ` Admin ` |
167+ | ` DEFAULT_TENANT_NAME ` | Default tenant name | ` Default ` |
168+ | ` DEFAULT_TENANT_SLUG ` | Default tenant slug | ` default ` |
169+ | ` DEFAULT_TENANT_ID ` | Default tenant ID | |
170+ | ` SEED_DEVELOPMENT ` | Development seeding flag | |
171+ | ` READ_REPLICA_ENABLED ` | Enable read replica | ` false ` |
172+ | ` READ_REPLICA_DATABASE_URL ` | Read replica database URL | |
173+ | ` READ_REPLICA_MAX_CONNS ` | Read replica max connections | ` 50 ` |
174+ | ` READ_REPLICA_MIN_CONNS ` | Read replica min connections | ` 10 ` |
175+ | ` DATABASE_LOGGER_LEVEL ` | Database logger level | |
176+ | ` DATABASE_LOGGER_FORMAT ` | Database logger format | |
173177
174178## Security Check Configuration
175179
0 commit comments