OGCR operator platform API: Django REST middleware to the DCR registry (PostGIS)
652
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.
vX.Y.Z (immutable release), X.Y (latest patch of a minor version), latest. Platform: linux/amd64.
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
| Port | 8000 (HTTP, gunicorn) |
| User | non-root, uid/gid 1000 |
| Health | GET /api/health/ → 200 when the app and database are up, 503 otherwise |
| Persistent data | /app/media (uploaded documents) |
| Database | PostgreSQL 16 with PostGIS 3 |
| Start-up | waits 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.
Content type
Image
Digest
sha256:08e13a370…
Size
176.8 MB
Last updated
6 days ago
docker pull team4gilab/operator-platform-api