Skip to content

Commit 39fa124

Browse files
authored
feat: Add Postgres 18 (#60)
1 parent 0c0183d commit 39fa124

3 files changed

Lines changed: 24 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ The default configuration can be found in the `.env.dist` file.
6060

6161
The repository currently supports these databases:
6262

63-
- PostgreSQL 9, 10, 11, 12, 13, 14, 15, 16, 17
63+
- PostgreSQL 9, 10, 11, 12, 13, 14, 15, 16, 17, 18
6464
- MySQL 5
6565
- MariaDB 10
6666

database/adminer/plugins/le-phare-pre-login-to-databases.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
class LePharePluginPreLoginToDatabases
77
{
88
const array MYSQL_HOSTS = ['mysql_5', 'mariadb_10'];
9-
const array POSTGRESQL_HOSTS = ['pgsql_9', 'pgsql_10', 'pgsql_11', 'pgsql_12', 'pgsql_13', 'pgsql_14', 'pgsql_15', 'pgsql_16', 'pgsql_17'];
9+
const array POSTGRESQL_HOSTS = ['pgsql_9', 'pgsql_10', 'pgsql_11', 'pgsql_12', 'pgsql_13', 'pgsql_14', 'pgsql_15', 'pgsql_16', 'pgsql_17', 'pgsql_18'];
1010

1111
function __construct()
1212
{

database/postgres/18.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
services:
2+
pgsql_18:
3+
restart: unless-stopped
4+
image: postgres:18
5+
networks:
6+
private:
7+
volumes:
8+
- pgsql_18:/var/lib/postgres/data
9+
environment:
10+
PGDATA: /var/lib/postgres/data
11+
POSTGRES_USER: postgres
12+
POSTGRES_PASSWORD: root
13+
healthcheck:
14+
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER}"]
15+
interval: 1m
16+
timeout: 5s
17+
retries: 3
18+
start_period: 30s
19+
start_interval: 5s
20+
21+
volumes:
22+
pgsql_18:

0 commit comments

Comments
 (0)