Skip to content

Commit

Permalink
Update more exec commands
Browse files Browse the repository at this point in the history
  • Loading branch information
gilberthl-mh committed Jun 13, 2024
1 parent 1a0c73a commit 1fad72e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/navy/src/config-providers/filesystem/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import type {Navy} from '../../navy'

async function cwdHasValidDockerComposeConfig() {
try {
await execAsync('docker-compose', ['config'], null, { maxBuffer: Infinity, cwd: process.cwd() })
await execAsync('docker compose', ['config'], null, { maxBuffer: Infinity, cwd: process.cwd() })
} catch (ex) {
return false
}
Expand Down
4 changes: 2 additions & 2 deletions packages/navy/src/http-proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export async function reconfigureHTTPProxy(opts: Object = {}) {
if (opts.restart) { // proxy needs to be recreated to detect changes (deletes) in /etc/nginx/certs
if (fs.existsSync(navyInternalYamlFile)) {
log('Restarting HTTP proxy...')
await execAsync('docker-compose',
await execAsync('docker compose',
[
'-f', navyInternalYamlFile,
'-p', 'navyinternal', 'rm', '-s', '-f', 'nginx-proxy',
Expand All @@ -78,7 +78,7 @@ export async function reconfigureHTTPProxy(opts: Object = {}) {
if (!opts.navies) opts.navies = await getLaunchedNavyNames()
await updateComposeConfig(opts.navies)
log('Configuring HTTP proxy...')
await execAsync('docker-compose',
await execAsync('docker compose',
[
'-f', navyInternalYamlFile,
'-p', 'navyinternal',
Expand Down

0 comments on commit 1fad72e

Please sign in to comment.