Skip to content

Commit

Permalink
Update docker compose PG version (#6142)
Browse files Browse the repository at this point in the history
Co-authored-by: Dotan Simha <[email protected]>
  • Loading branch information
TuvalSimha and dotansimha authored Dec 22, 2024
1 parent 90932da commit 25f1460
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 5 deletions.
12 changes: 12 additions & 0 deletions .changeset/dirty-schools-call.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
'hive': major
---

Docker Compose: Upgrade the PostgreSQL version for Docker Compose from version 14.13 to use 16.4. This change is published as major, as it requires attention based on your setup.

For self-hosters with a managed database, we recommend upgrading PostgreSQL based on your Cloud provider's or IT's
recommendation.

For self-hosters running in Docker, you can read about [upgrading PostgreSQL in a Docker container here](https://helgeklein.com/blog/upgrading-postgresql-in-docker-container/).

> The Hive data that was previously created with PostgreSQL v14 is compatible with v16.
2 changes: 1 addition & 1 deletion .github/workflows/db-types-diff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:

services:
postgres:
image: postgres:14.13-alpine
image: postgres:16.4-alpine
ports:
- 5432:5432
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests-db-migrations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:

services:
postgres:
image: postgres:14.13-alpine
image: postgres:16.4-alpine
ports:
- 5432:5432
env:
Expand Down
2 changes: 1 addition & 1 deletion deployment/services/database-cleanup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ END $$;
const { job } = new ServiceDeployment(
'db-cleanup',
{
image: 'postgres:14.13',
image: 'postgres:16.4',
env: {
PG_CONNECTION_STRING: rawConnectionString,
// to make sure we can run this over and over
Expand Down
2 changes: 1 addition & 1 deletion docker/docker-compose.community.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ networks:

services:
db:
image: postgres:14.13-alpine
image: postgres:16.4-alpine
environment:
POSTGRES_DB: '${POSTGRES_DB}'
POSTGRES_USER: '${POSTGRES_USER}'
Expand Down
2 changes: 1 addition & 1 deletion docker/docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3.8'
name: 'hive-dev'
services:
db:
image: postgres:14.13-alpine
image: postgres:16.4-alpine
mem_limit: 300m
networks:
- 'stack'
Expand Down
6 changes: 6 additions & 0 deletions packages/web/docs/src/pages/docs/self-hosting/get-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ The following diagram shows the architecture of a self-hosted GraphQL Hive insta

- **PostgreSQL database**: stores all core data, including: users, GraphQL schemas, schema checks,
projects, targets, organizations and configurations.

<Callout type="info">
We recommend using PostgreSQL version 16. While older versions (14, 15) may still work, we
recommend using 16 as this is the version we using for the cloud version of Hive.
</Callout>

- **Redis**: deployed as in-cluster, used for mainly for short-term caching.
- **ClickHouse database**: stores all GraphQL operations usage data.
- **Kafka**: high-throughput message queue, used for sending usage data to the usage-ingestor
Expand Down

0 comments on commit 25f1460

Please sign in to comment.