HUB
Sign inSign up

team4gilab/operator-platform-api

By team4gilab

•Updated 6 days ago

OGCR operator platform API: Django REST middleware to the DCR registry (PostGIS)

Image
0

652

team4gilab/operator-platform-api repository overview

⁠OGCR Operator Platform – API

Backend of the OGCR operator platform: a Django REST API that sits between operators and the DCR registry. Operators prepare projects, parcels (PostGIS geometries) and supporting documents here and submit them to DCR when ready.

⁠Tags

vX.Y.Z (immutable release), X.Y (latest patch of a minor version), latest. Platform: linux/amd64.

⁠Quick start

docker run -d --name operator-api -p 8000:8000 \
  -e DJANGO_SECRET_KEY=change-me \
  -e DJANGO_ALLOWED_HOSTS=localhost \
  -e DB_HOST=db -e POSTGRES_DB=operator -e POSTGRES_USER=operator -e POSTGRES_PASSWORD=change-me \
  -e DCR_BASE_URL=https://dcr.ogcr.tesobe.com \
  -e DCR_CONSUMER_KEY=... -e DCR_CONSUMER_SECRET=... \
  -v operator-media:/app/media \
  team4gilab/operator-platform-api:v0.1.0

⁠Container facts

Port8000 (HTTP, gunicorn)
Usernon-root, uid/gid 1000
HealthGET /api/health/ → 200 when the app and database are up, 503 otherwise
Persistent data/app/media (uploaded documents)
DatabasePostgreSQL 16 with PostGIS 3
Start-upwaits for the database, runs migrations, collects static files, starts gunicorn (RUN_MIGRATIONS=0 / COLLECT_STATIC=0 to skip)
API docs/api/docs/ (Swagger UI), admin at /admin/

All configuration is done with environment variables; the full list, a Kubernetes example and production notes (TLS proxy, migrations as a Job, request size limits) are in the deployment guide.

Tag summary

Content type

Image

Digest

sha256:08e13a370…

Size

176.8 MB

Last updated

6 days ago

docker pull team4gilab/operator-platform-api