This guide will walk you through deploying Plate Recognizer using Docker Compose.
- A valid Plate Recognizer API key and license key, which can be obtained from https://app.platerecognizer.com
- Docker and Docker Compose installed on your machine
- An API Gateway (such as Kong) with authentication and rate-limit modules configured
- Clone or download the Plate Recognizer repository from GitHub.
- Rename the default.env file to .env and update the
TOKENandLICENSE_KEYvariables with your Plate Recognizer API key and license key. - Run
docker-compose up -dto start the Plate Recognizer container. - Configure your API Gateway to use the Plate Recognizer container as a service and enable authentication and rate-limiting as necessary.
- Do not publish the Plate Recognizer container's port to the public IP address.
Once the Plate Recognizer container is running, You can access it using the following URL: http://ip:port/v1/plate-reader/
The deployment includes several performance and monitoring features:
- CPU: Maximum 4 cores, minimum 2 cores
- Memory: Maximum 4GB, minimum 2GB
WORKERS: Number of worker processes (default: 2)MAX_REQUESTS: Maximum number of requests per worker (default: 5000)CONFIDENCE_THRESHOLD: Minimum confidence score (default: 80)REGION: Region specific optimization (default: th)LOG_LEVEL: Logging verbosity (default: INFO)
The container includes automatic health checks every 30 seconds.
JSON format logs with rotation:
- Maximum file size: 10MB
- Keep last 3 log files
By following these steps, you have successfully deployed Plate Recognizer using Docker Compose, and have added an extra layer of security with an API gateway.
More information about Plate Recognizer
RACKSYNC Co., Ltd. specializes in automation and smart solutions of all scales. We are experts in designing, implementing, and monitoring sophisticated automation systems. Our team of specialists provides comprehensive consulting services and technical implementation for both residential and commercial projects. Beyond automation, we offer full-cycle Software as a Service (SaaS) development, helping businesses transform their operations through custom digital solutions. With our deep expertise in IoT, home automation, and enterprise systems, we deliver reliable and innovative solutions tailored to each client's unique requirements.
RACKSYNC COMPANY LIMITED
Suratthani, Thailand 84000
Email: devops@racksync.com
Tel: +66 85 880 8885