One-Shot Optimizer exposes the following ports:
| Service | Port | Purpose |
|---|---|---|
| Optimizer | 16100 | API requests from client applications |
| Optimizer | 5678 | Internal communication |
| Redis | 6379 | In-memory data store |
Port 16100 is the main entry point for One-Shot API requests (e.g. /oneshot/api/v1/...).
To use a different host port, update the port mapping in the docker-compose.yml file. The ports section maps host ports to container ports in the format host_port:container_port.
Example: to expose the API on host port 16100, ensure a line such as:
ports:
- "16100:16100"
- "5678:5678"To bind the API to another host port (e.g. 18000), change the left value: "18000:16100". After editing, restart the service: docker-compose restart.