feat(docker): extra

This commit is contained in:
cha0s 2023-12-05 15:54:32 -06:00
parent da25164acc
commit d5d0e8d74e
2 changed files with 4 additions and 1 deletions

View File

@ -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)}`,

View File

@ -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},