Skip to content

Commit

Permalink
feat(services): add postgresql 16 (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
thislg authored Jul 19, 2024
1 parent c3a5d18 commit 521b5e3
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .env.dist
Original file line number Diff line number Diff line change
@@ -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
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
19 changes: 19 additions & 0 deletions database/postgres/16.yml
Original file line number Diff line number Diff line change
@@ -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:

0 comments on commit 521b5e3

Please sign in to comment.