FastAPI backend for syncing docs and handling GitHub actions in DraftMk.
356
This repository contains the Docker configuration and API services for the Draftmk backend, built with FastAPI.
Note: This repository contains the backend logic and Docker deployment setup.
You can run the backend container directly:
docker run -p 8888:8888 jonmatum/draftmk-backend
Or use Docker Compose:
docker-compose up --build
The backend service is configured using environment variables. When used with Docker Compose, you can define these in a .env file in the project root. Below is a list of supported variables:
| Variable | Description | Default |
|---|---|---|
GITHUB_REPO | GitHub repository to sync markdown content | — |
GITHUB_BRANCH | Branch name for GitHub sync | main |
CONTENT_DIR | Path to local markdown content | docs |
USE_S3 | Whether to use S3 as the content source | false |
S3_BUCKET | Name of the S3 bucket | — |
S3_PREFIX | S3 prefix (folder path) for markdown files | docs/ |
Make sure to include all required values in your .env file to ensure proper startup.
The container exposes a health check endpoint:
GET /health
Used by Docker and orchestration tools to confirm service readiness.
Pull the public image:
docker pull jonmatum/draftmk-backend:latest
This Docker setup is provided under the MIT License.
echo "Pura Vida & Happy Coding!";
Content type
Image
Digest
sha256:0392acbf1…
Size
247.2 MB
Last updated
over 1 year ago
docker pull jonmatum/draftmk-backend