Skip to content

Commit c042d11

Browse files
gilberthl-mhmh-bains
authored andcommitted
Update more exec commands
1 parent a6effed commit c042d11

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/navy/src/config-providers/filesystem/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import type {Navy} from '../../navy'
1111

1212
async function cwdHasValidDockerComposeConfig() {
1313
try {
14-
await execAsync('docker-compose', ['config'], null, { maxBuffer: Infinity, cwd: process.cwd() })
14+
await execAsync('docker compose', ['config'], null, { maxBuffer: Infinity, cwd: process.cwd() })
1515
} catch (ex) {
1616
return false
1717
}

packages/navy/src/http-proxy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export async function reconfigureHTTPProxy(opts: Object = {}) {
6767
if (opts.restart) { // proxy needs to be recreated to detect changes (deletes) in /etc/nginx/certs
6868
if (fs.existsSync(navyInternalYamlFile)) {
6969
log('Restarting HTTP proxy...')
70-
await execAsync('docker-compose',
70+
await execAsync('docker compose',
7171
[
7272
'-f', navyInternalYamlFile,
7373
'-p', 'navyinternal', 'rm', '-s', '-f', 'nginx-proxy',
@@ -78,7 +78,7 @@ export async function reconfigureHTTPProxy(opts: Object = {}) {
7878
if (!opts.navies) opts.navies = await getLaunchedNavyNames()
7979
await updateComposeConfig(opts.navies)
8080
log('Configuring HTTP proxy...')
81-
await execAsync('docker-compose',
81+
await execAsync('docker compose',
8282
[
8383
'-f', navyInternalYamlFile,
8484
'-p', 'navyinternal',

0 commit comments

Comments
 (0)