Skip to content

arthurarty/docker-utils-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-utils-api

A simple API exposing endpoints to run docker commands.

How to run:

  1. Create .env following the .env_example.
  2. Install requirements in a python virtual env.
  3. Run application on desired port using a command like this one uvicorn main:app --port <port_number>.
  4. Access API documentation at /docs for example http://127.0.0.1:8080/docs if deployed on localhost port 8080.

API Endpoints exposed:

Endpoint Functionality Note
GET /docker-up-build Build docker containers Need to ensure the code is up to date before running this. Also check status first.
GET /docker-down Docker compose down Brings down the docker containers.
GET /docker-status/ List containers running. Shows which containers are running.

About

A simple API exposing endpoints to run docker commands.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages