Skip to content

Commit 249c220

Browse files
committed
3.3.0pre
1 parent 1e2d28e commit 249c220

File tree

6 files changed

+770
-875
lines changed

6 files changed

+770
-875
lines changed

README.md

Lines changed: 23 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,11 @@ Images are built for `amd64` by default, with optional support for `arm64` and o
9090

9191
The following directories are used for configuration and can be mapped for persistent storage.
9292

93-
| Directory | Description |
94-
| ---------------- | ------------------------------------------------------- |
95-
| `/certs/` | (optional) Drop TLS Certificates here |
96-
| `/config/` | Supplemental Configuration directory, loaded at startup |
97-
| `/data/_config/` | Configuration Directory |
98-
| `/data/` | Databases |
99-
| `/logs/` | Logfiles |
93+
| Directory | Description |
94+
| --------- | ------------------------------------- |
95+
| `/certs/` | (optional) Drop TLS Certificates here |
96+
| `/data/` | Databases |
97+
| `/logs/` | Logfiles |
10098

10199
### Environment Variables
102100

@@ -118,26 +116,24 @@ Below is the complete list of available options that can be used to customize yo
118116

119117
#### Container Options
120118

121-
| Parameter | Description | Default |
122-
| ---------------------------- | ---------------------------------------------------------------------------------------------------------- | ----------------------- |
123-
| `CERT_PATH` | Certificates location | `/certs/` |
124-
| `CONFIG_CUSTOM_PATH` | Custom location for configuration | `/config/` |
125-
| `CONFIG_FILE` | Configuration file | `postgresql.conf` |
126-
| `CONFIG_MODE` | Configuration mode `DEFAULT` - To be used at a later release | `DEFAULT` |
127-
| `CONFIG_PATH` | Configuration storage | `${DATA_PATH}/_config/` |
128-
| `DATA_PATH` | Database storage | `/data/` |
129-
| `HBA_FILE` | Host based access file name | `pg_hba.conf` |
130-
| `IDENT_FILE` | Identity file name | `pg_ident.conf` |
131-
| `LOG_FILE` | Logfile name | `postgresql.log` |
132-
| `LOG_FORMAT` | Log format `NORMAL` `JSON` or `CSV` Filename extension will change from `.log` to either `.json` or `.csv` | `NORMAL` |
133-
| `LOG_LEVEL` | Log level messages | `WARNING` |
134-
| | Values can be in descending detail `DEBUG5`,`DEBUG4`,`DEBUG3`,`DEBUG2`,`DEBUG1`, | |
135-
| | `INFO`,`NOTICE`,`WARNING`,`ERROR`,`LOG`,`FATAL`,`PANIC` | |
136-
| `LOG_LEVEL_ERROR_STATEMENTS` | Log level for errors | `ERROR` |
137-
| `LOG_PATH` | Store log files here | `/logs/` |
138-
| `LOG_TYPE` | Log Type `CONSOLE` or `FILE` | `FILE` |
139-
| `SETUP_MODE` | `AUTO` generate configuration files based on env vars | `AUTO` |
140-
| `WAL_PATH` | Write ahead log path if needing to be seperate from `DATA_PATH` | |
119+
| Parameter | Description | Default |
120+
| ---------------------------- | ---------------------------------------------------------------------------------------------------------- | ----------------------------- |
121+
| `CERT_PATH` | Certificates location | `/certs/` |
122+
| `CONFIG_PATH` | Custom location for configuration e.g `/config/` - Drop custom .conf files here | |
123+
| `CONFIG_MODE` | Configuration mode `CORE` `DEFAULT` - To be used at a later release | `CORE` |
124+
| `DATA_PATH` | Database storage | `/data/` |
125+
| `HBA_FILE` | Host based access file name | `/etc/postgres/pg_hba.conf` |
126+
| `IDENT_FILE` | Identity file name | `/etc/postgres/pg_ident.conf` |
127+
| `LOG_FILE` | Logfile name | `postgresql.log` |
128+
| `LOG_FORMAT` | Log format `NORMAL` `JSON` or `CSV` Filename extension will change from `.log` to either `.json` or `.csv` | `NORMAL` |
129+
| `LOG_LEVEL` | Log level messages | `WARNING` |
130+
| | Values can be in descending detail `DEBUG5`,`DEBUG4`,`DEBUG3`,`DEBUG2`,`DEBUG1`, | |
131+
| | `INFO`,`NOTICE`,`WARNING`,`ERROR`,`LOG`,`FATAL`,`PANIC` | |
132+
| `LOG_LEVEL_ERROR_STATEMENTS` | Log level for errors | `ERROR` |
133+
| `LOG_PATH` | Store log files here | `/logs/` |
134+
| `LOG_TYPE` | Log Type `CONSOLE` or `FILE` | `FILE` |
135+
| `SETUP_MODE` | `AUTO` generate configuration files based on env vars | `AUTO` |
136+
| `WAL_PATH` | Write ahead log path if needing to be seperate from `DATA_PATH` | |
141137

142138
#### Server Options
143139

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#########################################
2+
# PostgreSQL Core for nfrastack container
3+
#########################################
4+
5+
#data_directory = '{{DATA_PATH}}'
6+
#include_dir = '{{CONFIG_CUSTOM_PATH}}'
7+
#hba_file = '{{CONFIG_PATH}}/{{HBA_FILE}}'
8+
#ident_file = '{{CONFIG_PATH}}/{{IDENT_FILE}}'
9+
#listen_addresses = '{{LISTEN_IP}}'
10+
#port = '{{LISTEN_PORT}}'
11+
#max_connections = {{MAX_CONNECTIONS}}
12+
#bonjour = off # advertise server via Bonjour
13+
#log_destination = 'stderr' # Valid values are combinations of stderr, csvlog, jsonlog, syslog, and eventlog, # depending on platform. csvlog and jsonlog require logging_collector to be on.
14+
#logging_collector = off # Enable capturing of stderr, jsonlog, and csvlog into log files. Required to be on for csvlogs and jsonlogs.
15+
#log_directory = '{{LOG_PATH}}/' # Directory to write log files
16+
#log_filename = '{{LOG_FILE}}' # Log file pattern
17+
#log_file_mode = 0600 # Permissions for log files
18+
#log_rotation_age = 0 # Rotation age in seconds
19+
#log_rotation_size = 0 # Rotation size in kilobytes
20+
#log_min_messages = warning # Values: debug5..panic (decreasing verbosity)
21+
#log_min_error_statement = error # Values: debug5..panic
22+
#log_line_prefix = '%m [%p] ' # Special: %m %p %u %d %r etc.

0 commit comments

Comments
 (0)