Fix docker compose deploy: pass -f docker-compose.yml explicitly for Compose v5 compatibility
This commit is contained in:
parent
db4bb4deb8
commit
36c0d7b2aa
1 changed files with 2 additions and 2 deletions
|
|
@ -223,11 +223,11 @@ async function runRemote(target, repoName, cmd, label) {
|
|||
}
|
||||
|
||||
async function deploy(target, repoName) {
|
||||
return runRemote(target, repoName, `cd ${target.path} && git pull && docker compose up -d --build`, 'deploy')
|
||||
return runRemote(target, repoName, `cd ${target.path} && git pull && docker compose -f docker-compose.yml up -d --build`, 'deploy')
|
||||
}
|
||||
|
||||
async function rebuild(target, repoName) {
|
||||
return runRemote(target, repoName, `cd ${target.path} && docker compose up -d --build`, 'rebuild')
|
||||
return runRemote(target, repoName, `cd ${target.path} && docker compose -f docker-compose.yml up -d --build`, 'rebuild')
|
||||
}
|
||||
|
||||
// ── Routes ────────────────────────────────────────────────────────────────────
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue