Update docker.js
This commit is contained in:
parent
57f3ccbaeb
commit
7a6e7d0748
1 changed files with 4 additions and 4 deletions
|
|
@ -5,13 +5,13 @@ const app = process.argv[2];
|
||||||
const command = process.argv[3];
|
const command = process.argv[3];
|
||||||
|
|
||||||
const files = {
|
const files = {
|
||||||
all: ["zammad", "postgresql", "bridge", "opensearch", "link", "signal-cli-rest-api"],
|
all: ["zammad", "postgresql", "bridge", "opensearch", "link", "signal-cli-rest-api", "bridge-whatsapp"],
|
||||||
linkDev: ["zammad", "postgresql", "opensearch"],
|
linkDev: ["zammad", "postgresql", "opensearch"],
|
||||||
link: ["zammad", "postgresql", "opensearch", "link"],
|
link: ["zammad", "postgresql", "opensearch", "link"],
|
||||||
linkOnly: ["link"],
|
linkOnly: ["link"],
|
||||||
opensearch: ["opensearch"],
|
opensearch: ["opensearch"],
|
||||||
bridgeDev: ["zammad", "postgresql", "signal-cli-rest-api"],
|
bridgeDev: ["zammad", "postgresql", "signal-cli-rest-api", "bridge-whatsapp"],
|
||||||
bridge: ["zammad", "postgresql", "bridge", "signal-cli-rest-api"],
|
bridge: ["zammad", "postgresql", "bridge", "signal-cli-rest-api", "bridge-whatsapp"],
|
||||||
zammad: ["zammad", "postgresql", "opensearch"],
|
zammad: ["zammad", "postgresql", "opensearch"],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -21,7 +21,7 @@ const finalFiles = files[app]
|
||||||
.map((file) => ['-f', `docker/compose/${file}.yml`]).flat();
|
.map((file) => ['-f', `docker/compose/${file}.yml`]).flat();
|
||||||
|
|
||||||
// Add bridge-dev.yml for dev commands that include zammad
|
// Add bridge-dev.yml for dev commands that include zammad
|
||||||
const devAppsWithZammad = ['linkDev', 'bridgeDev', 'all'];
|
const devAppsWithZammad = ['linkDev', 'bridgeDev'];
|
||||||
if (devAppsWithZammad.includes(app) && files[app].includes('zammad')) {
|
if (devAppsWithZammad.includes(app) && files[app].includes('zammad')) {
|
||||||
finalFiles.push('-f', 'docker-compose.bridge-dev.yml');
|
finalFiles.push('-f', 'docker-compose.bridge-dev.yml');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue