A simple API exposing endpoints to run docker commands.
- Create
.envfollowing the.env_example. - Install requirements in a python virtual env.
- Run application on desired port using a command like this one
uvicorn main:app --port <port_number>. - Access API documentation at
/docsfor examplehttp://127.0.0.1:8080/docsif deployed on localhost port 8080.
| 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. |