Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(services): add postgresql 16 #29

Merged
merged 1 commit into from
Jul 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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:
Loading