feat(docker): extra
This commit is contained in:
parent
da25164acc
commit
d5d0e8d74e
|
@ -55,7 +55,7 @@ export default (program, flecks) => {
|
||||||
.map(async ([fleck, config]) => {
|
.map(async ([fleck, config]) => {
|
||||||
Object.entries(await config)
|
Object.entries(await config)
|
||||||
.forEach(([key, config]) => {
|
.forEach(([key, config]) => {
|
||||||
services[key] = {image: config.image, environment: {}};
|
services[key] = {image: config.image, environment: {}, ...config.extra};
|
||||||
});
|
});
|
||||||
return [
|
return [
|
||||||
`FLECKS_ENV_${flecks.constructor.environmentalize(fleck)}`,
|
`FLECKS_ENV_${flecks.constructor.environmentalize(fleck)}`,
|
||||||
|
|
|
@ -5,6 +5,9 @@ export default (flecks) => ({
|
||||||
host: 'redis',
|
host: 'redis',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
extra: {
|
||||||
|
command: `--port ${flecks.get('@flecks/redis/server.port')}`,
|
||||||
|
},
|
||||||
image: 'redis:6',
|
image: 'redis:6',
|
||||||
mount: '/data',
|
mount: '/data',
|
||||||
ports: {[flecks.get('@flecks/redis/server.port')]: 6379},
|
ports: {[flecks.get('@flecks/redis/server.port')]: 6379},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user