Skip to content
/ fastapi-docker-logs Public template

🛠 Managing docker containers with FastAPI.

Notifications You must be signed in to change notification settings

dotX12/fastapi-docker-logs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fastapi-docker-logs

Asynchronous work with Docker API is used.

Methods

image


Logs

image

Example CI/CD

https://github.com/dotX12/fastapi-docker-logs/blob/master/ci_cd.yml

How to use in docker?

Example in CI/CD

docker run -d --network host \
-v /var/run/docker.sock:/var/run/docker.sock \
-e BASIC_AUTH_USERNAME=${{ secrets.BASIC_AUTH_USERNAME }} \
-e BASIC_AUTH_PASSWORD=${{ secrets.BASIC_AUTH_PASSWORD }} \
--name $(echo $IMAGE_NAME) \
-p 4243:80 \
--restart always \
$(echo $REGISTRY)/$(echo $IMAGE_NAME):$(echo $GITHUB_SHA | head -c7)

About

🛠 Managing docker containers with FastAPI.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published