How to env file in compose.upOne or any compose operation. #183
Unanswered
dishabodade
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Unfortunately that won't work afaik. export const upOne = function (
service: string,
options?: IDockerComposeOptions
): Promise<IDockerComposeResult> {
const args = shouldUseDefaultNonInteractiveFlag(options)
? ['-d', service]
: [service]
return execCompose('up', args, options)
} What you want to use is the Line 11 in a28e801 Like so (haven't tested this): compose.upOne('nginx', { cwd: arsAppDir, log: true, composeOptions: ['--env-file', 'declarations.env'] }) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have env file which we can use as
$docker-compose --env-file declaration.env up -d
$docker-compose --env-file declaration.env down
I have implemented some API's using node docker-compose package.
I am using function call like
how to add this option --env-file declaration.env?
I have added the below way.
I am doing it right?
Beta Was this translation helpful? Give feedback.
All reactions