The CLI that diagnose your app and allow you to create the best docker-compose solution.
This tool is solo-maintained by me @Oriun with more than passed on the project. I use it in my projects so maybe you can use it too. Tell me if you find it useful or if you would like new features.
curl -sSL https://raw.githubusercontent.com/Oriun/doctor-compose/master/install.sh | bash
Go to the Release page and download the latest version. Unzip the archive and move the binary to your bin folder.
The goal of this project is to create a CLI that scan a directory and generate a docker-compose.yml
, .env
, and several Dockerfile
s depending on the detected tech stack. It is also possible to generate these files via cli and it is the first goal of this project.
- Generate
docker-compose.yml
- Generate
.env
- Handle some database types
- Increment existing stack
- Handle some Nodejs backend stacks (Ongoing 🔥)
- Be aware of other services when creating a service
- Handle some Python backend stacks
- Handle some Go backend stacks
- Handle some Javascript frontend stacks
- Handle some Proxies like Nginx, Traefik, Apache, etc.
- Handle advance networking, configs and secrets
- Next steps: Scan a directory...
# Go to the root of the project
cd my-project
doctor-compose
docker-compose.yml
with version ^3.9 and services. Currently no support fornetworks
,configs
orsecrets
.- services with
image
,volumes
,restart
,ports
andenvironment
. - services have a comment that explains roughly the purpose of the service.
- if
.env
is generated,service.environment
remaps the variable to conform to the service.
- services with
.env
if selected in the CLI. Variables names are prepended with the service name in case of duplicate variables.
Dockerfile
depending on the detected tech stack