diff --git a/.env.dist b/.env.dist index cadbb50..fd71754 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/16.yml:docker-compose.compatibility.yml +COMPOSE_FILE=docker-compose.yml:database/adminer/adminer.yml:database/mysql/5.yml:database/postgres/9.yml:database/postgres/17.yml:docker-compose.compatibility.yml diff --git a/README.md b/README.md index 90f6226..f19c322 100644 --- a/README.md +++ b/README.md @@ -53,14 +53,14 @@ The base stack contains the minimal configuration related to web development. ## Compose your stack -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 include 3 databases containers : mysql 5, postgres 9 and postgres 17. You can change the loaded containers by changing the `COMPOSE_FILE` environment variable in the `.env` file. The default configuration can be found in the `.env.dist` file. The repository currently supports these databases: - - postgresql 9, 10, 11, 12, 13, 14, 15, 16 + - postgresql 9, 10, 11, 12, 13, 14, 15, 16, 17 - mysql 5 - mariadb 10 diff --git a/database/postgres/17.yml b/database/postgres/17.yml new file mode 100644 index 0000000..3fe9204 --- /dev/null +++ b/database/postgres/17.yml @@ -0,0 +1,19 @@ +services: + pgsql_17: + restart: unless-stopped + image: postgres:17 + networks: + private: + volumes: + - pgsql_17:/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_17: