diff --git a/packages/docker/src/commands.js b/packages/docker/src/commands.js index 518b7bb..32dea55 100644 --- a/packages/docker/src/commands.js +++ b/packages/docker/src/commands.js @@ -55,7 +55,7 @@ export default (program, flecks) => { .map(async ([fleck, config]) => { Object.entries(await config) .forEach(([key, config]) => { - services[key] = {image: config.image, environment: {}}; + services[key] = {image: config.image, environment: {}, ...config.extra}; }); return [ `FLECKS_ENV_${flecks.constructor.environmentalize(fleck)}`, diff --git a/packages/redis/src/containers.js b/packages/redis/src/containers.js index a6c4ce1..9989af9 100644 --- a/packages/redis/src/containers.js +++ b/packages/redis/src/containers.js @@ -5,6 +5,9 @@ export default (flecks) => ({ host: 'redis', }, }, + extra: { + command: `--port ${flecks.get('@flecks/redis/server.port')}`, + }, image: 'redis:6', mount: '/data', ports: {[flecks.get('@flecks/redis/server.port')]: 6379},