Skip to content

Commit

Permalink
Add docker-compose.yml support. (#126)
Browse files Browse the repository at this point in the history
* Update index.js

* Update index.js
  • Loading branch information
lilkidsuave authored Feb 15, 2024
1 parent af71431 commit 8962158
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,16 @@ for (const file of servapps) {
}

servapp.icon = `https://azukaar.github.io/cosmos-servapps-official/servapps/${file}/icon.png`
servapp.compose = `https://azukaar.github.io/cosmos-servapps-official/servapps/${file}/cosmos-compose.json`
//Common Format,used by most
const YMLComposeSource = `https://azukaar.github.io/cosmos-servapps-official/servapps/${file}/docker-compose.yml`;
if(fs.existsSync(`./servapps/${file}/docker-compose.yml`)) {
servapp.compose = YMLComposeSource;
}
//Cosmos Legacy Format
const CosmosComposeSource = `https://azukaar.github.io/cosmos-servapps-official/servapps/${file}/cosmos-compose.json`;
if(fs.existsSync(`./servapps/${file}/cosmos-compose.json`)) {
servapp.compose = CosmosComposeSource;
}

servappsJSON.push(servapp)
}
Expand Down

0 comments on commit 8962158

Please sign in to comment.