diff --git a/compose.yaml b/compose.yaml index e6ec7fd5..b1bb4d73 100644 --- a/compose.yaml +++ b/compose.yaml @@ -33,7 +33,7 @@ services: UPLOAD_PATH: /data/serve/uploads MAX_FILE_SIZE: 200 LOG_DIR: /data/logs - DATABASE_URL: postgres://danceblue:danceblue@postgres:5432/danceblue?schema=danceblue + DATABASE_URL: postgres://danceblue:danceblue@danceblue-${HOST_PREFIX:-}-postgres-1:5432/danceblue?schema=danceblue SERVE_ORIGIN: https://${HOST_PREFIX:-}.danceblue.org LOGGING_LEVEL: ${LOGGING_LEVEL:-info} SUPER_ADMIN_LINKBLUE: ${SUPER_ADMIN_LINKBLUE} diff --git a/packages/server/src/repl.ts b/packages/server/src/repl.ts index bec622be..26ca90e4 100644 --- a/packages/server/src/repl.ts +++ b/packages/server/src/repl.ts @@ -42,6 +42,8 @@ for (const resolver of resolversList) { replServer.context[resolver.name] = Container.get(resolver); } +replServer.context.getService = Container.get.bind(Container); + replServer.context.prisma = Container.get(prismaToken); replServer.context.env = getEnvironment();