Skip to content

Commit 7cdd7d2

Browse files
committed
feat: Add Pgsql 18 support
1 parent 8d46fdd commit 7cdd7d2

2 files changed

Lines changed: 22 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Although this project started as a development environment for Totara Learn it c
1515
* [NGINX](https://nginx.org/) as a webserver
1616
* [Apache](https://httpd.apache.org/) as a webserver
1717
* [PHP](http://php.net/) 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3, 8.4, 8.5 to test for different versions
18-
* [PostgreSQL](https://www.postgresql.org/) (9.3, 9.6, 10, 11, 12, 13, 14, 15, 16, 17),
18+
* [PostgreSQL](https://www.postgresql.org/) (9.3, 9.6, 10, 11, 12, 13, 14, 15, 16, 17, 18),
1919
* [MariaDB](https://mariadb.org/) (10.2, 10.3, 10.4, 10.5, 10.6, 10.7, 10.8, 10.11, 11.4, 11.8),
2020
* [MySQL](https://www.mysql.com/) (5.7, 8.0, 8.4),
2121
* Microsoft SQL Server ([2017](https://www.microsoft.com/en-us/sql-server/sql-server-2017), [2019](https://www.microsoft.com/en-us/sql-server/sql-server-2019), [2022](https://www.microsoft.com/en-us/sql-server/sql-server-2022))

compose/pgsql.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,26 @@ services:
199199
networks:
200200
- totara
201201

202+
pgsql18:
203+
image: postgres:18-alpine
204+
container_name: totara_pgsql18
205+
restart: ${RESTART_POLICY:-no}
206+
ports:
207+
- "5447:5432"
208+
environment:
209+
TZ: ${TIME_ZONE}
210+
PGDATA: /var/lib/postgresql/docker/pgdata
211+
POSTGRES_HOST_AUTH_METHOD: trust
212+
command:
213+
postgres -c 'config_file=/etc/postgresql/postgresql.conf'
214+
volumes:
215+
- ./pgsql/my-postgres.conf:/etc/postgresql/postgresql.conf
216+
- pgsql18-data:/var/lib/postgresql/docker
217+
depends_on:
218+
- nginx
219+
networks:
220+
- totara
221+
202222
volumes:
203223
pgsql93-data:
204224
pgsql96-data:
@@ -210,3 +230,4 @@ volumes:
210230
pgsql15-data:
211231
pgsql16-data:
212232
pgsql17-data:
233+
pgsql18-data:

0 commit comments

Comments
 (0)