{"id":14155232,"url":"https://github.com/dohsimpson/docker2kube","last_synced_at":"2026-01-16T10:58:42.335Z","repository":{"id":181214480,"uuid":"666236593","full_name":"dohsimpson/docker2kube","owner":"dohsimpson","description":"TypeScript lib to convert docker-compose to kubernetes","archived":false,"fork":false,"pushed_at":"2024-02-22T21:10:10.000Z","size":261,"stargazers_count":20,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-12-08T03:27:49.399Z","etag":null,"topics":["docker","docker-compose","kubernetes","typescript"],"latest_commit_sha":null,"homepage":"https://docker2kube.app.enting.org","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dohsimpson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2023-07-14T03:13:07.000Z","updated_at":"2024-05-08T16:02:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"28b8a95b-cfcb-4403-8e83-91a38235bc71","html_url":"https://github.com/dohsimpson/docker2kube","commit_stats":null,"previous_names":["dohsimpson/docker2kube"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dohsimpson%2Fdocker2kube","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dohsimpson%2Fdocker2kube/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dohsimpson%2Fdocker2kube/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dohsimpson%2Fdocker2kube/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dohsimpson","download_url":"https://codeload.github.com/dohsimpson/docker2kube/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228821400,"owners_count":17977165,"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":["docker","docker-compose","kubernetes","typescript"],"created_at":"2024-08-17T08:02:34.192Z","updated_at":"2026-01-16T10:58:42.288Z","avatar_url":"https://github.com/dohsimpson.png","language":"TypeScript","funding_links":[],"categories":["typescript"],"sub_categories":[],"readme":"# docker2kube (d2k)\n\nd2k is a typescript library that converts docker-compose YAML files to Kubernetes YAML file. The goal is to make it easy to deploy docker project on Kubernetes.\n\n# UI\nVisit https://docker2kube.app.enting.org/ to perform conversion online.\n\n# Installation\nNPM: `npm i docker2kube`\n\nYARN: `yarn add docker2kube`\n\n# Usage\n```javascript\nimport { convert } from 'docker2kube';\n\nconst composeYaml = `\\\nversion: '3'\n\nservices:\n  nginx:\n    image: nginx:latest\n    ports:\n      - \"80:80\"\n    volumes:\n      - ./nginx.conf:/etc/nginx/nginx.conf\n    restart: always\n`;\n\nconst output = convert(composeYaml);\nconsole.log(output);\n```\n\n\n# Acknowledgment\n\n* [kompose](https://github.com/kubernetes/kompose) is the canonical tool for converting docker-compose templates. And inspired this project.\n* [json-schema-to-typescript](https://github.com/bcherny/json-schema-to-typescript) makes working with JSON schema a dream.\n* [composerize](https://github.com/magicmark/composerize) for converting docker command.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdohsimpson%2Fdocker2kube","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdohsimpson%2Fdocker2kube","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdohsimpson%2Fdocker2kube/lists"}