@@ -307,25 +307,27 @@ 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+ # environment:
317+ # DEBUG: graphile-build:warn,graphile-build-pg:sql
318+ image : maevsi/postgraphile:dev
322319 secrets :
323- - postgraphile_connection
324- - postgraphile_jwt-secret
325- - postgraphile_owner-connection
320+ - source : postgraphile_connection
321+ target : /run/environment-variables/POSTGRAPHILE_CONNECTION
322+ - source : postgraphile_jwt-secret
323+ target : /run/environment-variables/POSTGRAPHILE_JWT_SECRET_KEY
324+ - source : postgraphile_owner-connection
325+ target : /run/environment-variables/POSTGRAPHILE_OWNER_CONNECTION
326326 volumes :
327- - ./configurations/postgraphile/jwtRS256.key.pub:/run/config/postgraphile_jwt-public-key:ro
328- - ../production/configurations/postgraphile/.postgraphilerc.js:/postgraphile/.postgraphilerc.js:ro
327+ - ../../../postgraphile/:/srv/app/ # DARGSTACK-REMOVE
328+ - ./configurations/postgraphile/jwtRS256.key.pub:/run/environment-variables/POSTGRAPHILE_JWT_PUBLIC_KEY:ro
329+ - pnpm_data:/srv/.pnpm-store/ # DARGSTACK-REMOVE
330+ - postgraphile_data:/srv/app/node_modules # DARGSTACK-REMOVE
329331 postgres :
330332 # You can access the database via `adminer`.
331333 command : -c vibetype.jwt_expiry_duration='1 month' -c wal_level=logical
@@ -596,6 +598,9 @@ volumes:
596598 portainer_data :
597599 # The container manager's data.
598600 {}
601+ postgraphile_data :
602+ # The GraphQL API's data.
603+ {}
599604 postgres_data :
600605 # The database's data.
601606 {}
0 commit comments