diff --git a/packages/db/src/server.js b/packages/db/src/server.js index 087bce6..faf38ba 100644 --- a/packages/db/src/server.js +++ b/packages/db/src/server.js @@ -1,5 +1,6 @@ import {Flecks} from '@flecks/core'; +import containers from '../build/containers'; import {createDatabaseConnection} from './connection'; import register from './register'; @@ -20,6 +21,7 @@ export const hooks = { register(gathered, flecks.db.sequelize); } }, + '@flecks/docker.containers': containers, '@flecks/server.up': Flecks.priority( async (flecks) => { flecks.db.sequelize = await createDatabaseConnection(flecks); diff --git a/packages/redis/src/server.js b/packages/redis/src/server.js index a1bc5cc..befff62 100644 --- a/packages/redis/src/server.js +++ b/packages/redis/src/server.js @@ -1,5 +1,6 @@ import {Flecks} from '@flecks/core'; +import containers from '../build/containers'; import createClient from './create-client'; export {default as redis} from 'redis'; @@ -29,6 +30,7 @@ const safeKeys = async (client, pattern, caret) => { export const keys = (client, pattern) => safeKeys(client, pattern, 0); export const hooks = { + '@flecks/docker.containers': containers, '@flecks/repl.context': async (flecks) => ({ redisClient: await createClient(flecks), }),