From ec82321a2a3407c64ab70c983bad5403dd2b04ae Mon Sep 17 00:00:00 2001 From: Thibaut Selingue <7049020+thislg@users.noreply.github.com> Date: Fri, 19 Jul 2024 11:29:15 +0200 Subject: [PATCH] feat(services): add postgresql 16 --- .env.dist | 2 +- README.md | 6 ++---- database/postgres/16.yml | 19 +++++++++++++++++++ 3 files changed, 22 insertions(+), 5 deletions(-) create mode 100644 database/postgres/16.yml diff --git a/.env.dist b/.env.dist index a76b669..cadbb50 100644 --- a/.env.dist +++ b/.env.dist @@ -1,2 +1,2 @@ COMPOSE_PROJECT_NAME=dev -COMPOSE_FILE=docker-compose.yml:database/adminer/adminer.yml:database/mysql/5.yml:database/postgres/9.yml:database/postgres/14.yml:docker-compose.compatibility.yml +COMPOSE_FILE=docker-compose.yml:database/adminer/adminer.yml:database/mysql/5.yml:database/postgres/9.yml:database/postgres/16.yml:docker-compose.compatibility.yml diff --git a/README.md b/README.md index 8f8e9c6..90f6226 100644 --- a/README.md +++ b/README.md @@ -55,14 +55,12 @@ The base stack contains the minimal configuration related to web development. The default configuration include 3 databases containers : mysql 5, postgres 9 and postgres 14. You can change the loaded containers by changing the `COMPOSE_FILE` environment variable in the `.env` file. -The default configuration is - - COMPOSE_FILE=docker-compose.yml:database/adminer/adminer.yml:database/mysql/5.yml:database/postgres/9.yml:database/postgres/14.yml:docker-compose.compatibility.yml +The default configuration can be found in the `.env.dist` file. The repository currently supports these databases: - - postgresql 9, 10, 11, 12, 13, 14 + - postgresql 9, 10, 11, 12, 13, 14, 15, 16 - mysql 5 - mariadb 10 diff --git a/database/postgres/16.yml b/database/postgres/16.yml new file mode 100644 index 0000000..ab3653b --- /dev/null +++ b/database/postgres/16.yml @@ -0,0 +1,19 @@ +services: + pgsql_16: + restart: unless-stopped + image: postgres:16 + networks: + private: + volumes: + - pgsql_16:/var/lib/postgres/data + environment: + PGDATA: /var/lib/postgres/data + POSTGRES_USER: postgres + POSTGRES_PASSWORD: root + healthcheck: + test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER}"] + timeout: 5s + start_period: 10s + +volumes: + pgsql_16: