Skip to content

Commit 0113383

Browse files
committed
feat(postgraphile)!: upgrade to v5
1 parent 1ccdd94 commit 0113383

File tree

4 files changed

+25
-39
lines changed

4 files changed

+25
-39
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,10 @@ This project is deployed in accordance to the [DargStack template](https://githu
310310

311311
The container manager's data.
312312

313+
- ### `postgraphile_data`
314+
315+
The GraphQL API's data.
316+
313317
- ### `postgres_data`
314318

315319
The database's data.

src/development/stack.yml

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -307,25 +307,28 @@ services:
307307
- traefik.http.routers.postgraphile.rule=Host(`postgraphile.${STACK_DOMAIN}`)
308308
- traefik.http.routers.postgraphile_secure.entryPoints=web-secure
309309
- traefik.http.routers.postgraphile_secure.middlewares=postgraphile_auth,postgraphile_cors
310-
- traefik.http.routers.postgraphile_secure.rule=Host(`postgraphile.${STACK_DOMAIN}`)
310+
- traefik.http.routers.postgraphile_secure.rule=Host(`postgraphile.${STACK_DOMAIN}`) && Path(`/graphql`)
311311
- traefik.http.routers.postgraphile_secure.tls.options=mintls13@file #DARGSTACK-REMOVE
312312
- traefik.http.routers.postgraphile_secure_graphiql.entryPoints=web-secure
313-
- traefik.http.routers.postgraphile_secure_graphiql.rule=Host(`postgraphile.${STACK_DOMAIN}`) && Path(`/graphiql`)
313+
- traefik.http.routers.postgraphile_secure_graphiql.rule=Host(`postgraphile.${STACK_DOMAIN}`)
314314
- traefik.http.routers.postgraphile_secure_graphiql.tls.options=mintls13@file #DARGSTACK-REMOVE
315-
- traefik.http.services.postgraphile.loadbalancer.server.port=5000
316-
environment:
317-
POSTGRAPHILE_CONNECTION_FILE: /run/secrets/postgraphile_connection
318-
POSTGRAPHILE_JWT_PUBLIC_KEY_FILE: /run/config/postgraphile_jwt-public-key
319-
POSTGRAPHILE_JWT_SECRET_KEY_FILE: /run/secrets/postgraphile_jwt-secret
320-
POSTGRAPHILE_OWNER_CONNECTION_FILE: /run/secrets/postgraphile_owner-connection
321-
image: ghcr.io/maevsi/postgraphile:1.0.19
315+
- traefik.http.services.postgraphile.loadbalancer.server.port=5678
316+
# # Use the DEBUG environment variable for extended debugging.
317+
# environment:
318+
# DEBUG: graphile-build:warn,graphile-build-pg:sql
319+
image: maevsi/postgraphile:dev
322320
secrets:
323-
- postgraphile_connection
324-
- postgraphile_jwt-secret
325-
- postgraphile_owner-connection
321+
- source: postgraphile_connection
322+
target: /run/environment-variables/POSTGRAPHILE_CONNECTION
323+
- source: postgraphile_jwt-secret
324+
target: /run/environment-variables/POSTGRAPHILE_JWT_SECRET_KEY
325+
- source: postgraphile_owner-connection
326+
target: /run/environment-variables/POSTGRAPHILE_OWNER_CONNECTION
326327
volumes:
327-
- ./configurations/postgraphile/jwtRS256.key.pub:/run/config/postgraphile_jwt-public-key:ro
328-
- ../production/configurations/postgraphile/.postgraphilerc.js:/postgraphile/.postgraphilerc.js:ro
328+
- ../../../postgraphile/:/srv/app/ #DARGSTACK-REMOVE
329+
- ./configurations/postgraphile/jwtRS256.key.pub:/run/environment-variables/POSTGRAPHILE_JWT_PUBLIC_KEY:ro
330+
- pnpm_data:/srv/.pnpm-store/ #DARGSTACK-REMOVE
331+
- postgraphile_data:/srv/app/node_modules #DARGSTACK-REMOVE
329332
postgres:
330333
# You can access the database via `adminer`.
331334
command: -c vibetype.jwt_expiry_duration='1 month' -c wal_level=logical
@@ -596,6 +599,9 @@ volumes:
596599
portainer_data:
597600
# The container manager's data.
598601
{}
602+
postgraphile_data:
603+
# The GraphQL API's data.
604+
{}
599605
postgres_data:
600606
# The database's data.
601607
{}

src/production/configurations/postgraphile/.postgraphilerc.js

Lines changed: 0 additions & 25 deletions
This file was deleted.

src/production/production.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ services:
4343
- (( append ))
4444
- traefik.http.routers.postgraphile.middlewares=postgraphile_auth,postgraphile_cors
4545
- traefik.http.routers.postgraphile_secure.tls.certresolver=default
46+
image: maevsi/postgraphile:2.0.0-beta.1
4647
postgres_backup:
4748
# You cannot access the database backup directly.
4849
environment:

0 commit comments

Comments
 (0)