A docker-based development dependency manager.
Stop messing with system dependencies, running the services you need in a perfectly isolated Docker container instead, for local development only.
npm i -g @egoist/doko
postgres
mysql
redis
chrome
doko list
Adding a service to ~/.doko/config.json
:
doko add redis
# Or a custom service
doko add hello --image hello-world
Removing a service from ~/.doko/config.json
:
doko remove redis
doko up
doko down
When you add a service, it's automatically enabled, meaning doko up
, doko down
will start and stop it respectively.
If you want to stop it from running, but keep its configuration in .doko/config.json
, you can run:
doko disable redis
When you need it again, you can bring it back with:
doko enable redis
This command basically adds / removes the service from our internal docker compose config.
Default password for postgres
and mysql
is password
, you can update it manually in ~/.doko/services.json
.
doko repl <service-name>
# e.g.
doko repl postgres
Run doko compose
to run docker-compose
in ~/.doko
directory, for example:
# Stop the chrome service
doko compose stop chrome
MIT © EGOIST