https://github.com/denver-code/docker-fastapi-panel
Demo repository that has basic docker + fastapi integration. In future will be used in some of my projects
https://github.com/denver-code/docker-fastapi-panel
Last synced: 3 months ago
JSON representation
Demo repository that has basic docker + fastapi integration. In future will be used in some of my projects
- Host: GitHub
- URL: https://github.com/denver-code/docker-fastapi-panel
- Owner: denver-code
- Created: 2025-04-15T21:11:07.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-04-15T21:13:37.000Z (10 months ago)
- Last Synced: 2025-04-15T22:24:04.283Z (10 months ago)
- Language: Python
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker FastAPI Panel
Demo repository that has basic docker + fastapi integration.
In future, it will be used in some of my projects
## Features
- Show containers + their status
- Start container
- Stop Container
## Download
```bash
git clone https://github.com/denver-code/docker-fastapi-panel
cd docker-fastapi-panel
```
# Make sure the docker engine is already running!
## Docker Compose
Note that the current method requires to complete expose the docker socket (eg `/var/run/docker.sock:/var/run/docker.sock`)
This is a dangerous way of doing things, but still WIP to figure out more secure ways
```bash
docker compose up -d
```
Add `sudo` if required
## Manual
```bash
poetry install
poetry shell
uvicorn main:app
```
or
```bash
pip install uvicorn docker fastapi
uvicorn main:app
```
# Available routes
`GET /containers` - returns
`POST /stop/ID` - stops container
`POST /start/ID` - starts container