@@ -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 {}
0 commit comments