{"id":13583001,"url":"https://github.com/apocas/dockerode-compose","last_synced_at":"2025-10-26T15:38:30.570Z","repository":{"id":42053362,"uuid":"354951782","full_name":"apocas/dockerode-compose","owner":"apocas","description":"docker-compose in Node.js using dockerode","archived":false,"fork":false,"pushed_at":"2025-01-03T22:53:50.000Z","size":124,"stargazers_count":149,"open_issues_count":19,"forks_count":32,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-04-01T08:42:46.730Z","etag":null,"topics":["compose","docker","docker-compose","dockerode","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apocas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-05T19:40:27.000Z","updated_at":"2025-03-06T16:53:13.000Z","dependencies_parsed_at":"2024-04-08T15:57:10.372Z","dependency_job_id":"59c56233-b8af-4e82-938a-6792f6cec5da","html_url":"https://github.com/apocas/dockerode-compose","commit_stats":{"total_commits":101,"total_committers":11,"mean_commits":9.181818181818182,"dds":0.5841584158415842,"last_synced_commit":"7875946d6b57a0eddcfadfccd4a6aeae187166cd"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apocas%2Fdockerode-compose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apocas%2Fdockerode-compose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apocas%2Fdockerode-compose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apocas%2Fdockerode-compose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apocas","download_url":"https://codeload.github.com/apocas/dockerode-compose/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247819940,"owners_count":21001394,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["compose","docker","docker-compose","dockerode","nodejs"],"created_at":"2024-08-01T15:03:11.126Z","updated_at":"2025-10-26T15:38:25.551Z","avatar_url":"https://github.com/apocas.png","language":"JavaScript","readme":"# dockerode-compose\n\n`docker-compose` in Node.js using [dockerode](https://github.com/apocas/dockerode).\n\nEverything is executed programmatically using `dockerode`, consequently Docker's API.\n\n\n### ToDo:\n* Finish compose spec\n* User friendly functions (partial deploys, etc) needs to be implemented.\n\n## Installation\n\n`npm install dockerode-compose`\n\n\n### Getting started\n\nTo use `dockerode-compose` first you need to instantiate it:\n\n``` js\nvar Dockerode = require('dockerode');\nvar DockerodeCompose = require('dockerode-compose');\n\nvar docker = new Dockerode();\nvar compose = new DockerodeCompose(docker, './test/wordpress.yml', 'wordpress');\n\n(async () =\u003e {\n  await compose.pull();\n  var state = await compose.up();\n  console.log(state);\n})();\n```\n\n## Documentation\n- new DockerodeCompose(dockerode, file, project_name)\n- compose.up()\n- compose.pull(service, options) - omit service to pull all images, options.streams return the streams without waiting, options.verbose pipe the streams to stdout.\n\n## Tests\n\n * Tests are implemented using `mocha` and `chai`. Run them with `npm test`.\n\n## Examples\n\nCheck the examples folder for more specific use cases examples.\n\n## License\n\nPedro Dias - [@pedromdias](https://twitter.com/pedromdias)\n\nLicensed under the Apache license, version 2.0 (the \"license\"); You may not use this file except in compliance with the license. You may obtain a copy of the license at:\n\n    http://www.apache.org/licenses/LICENSE-2.0.html\n\nUnless required by applicable law or agreed to in writing, software distributed under the license is distributed on an \"as is\" basis, without warranties or conditions of any kind, either express or implied. See the license for the specific language governing permissions and limitations under the license.\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapocas%2Fdockerode-compose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapocas%2Fdockerode-compose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapocas%2Fdockerode-compose/lists"}