API Gateway for URL Shortener, managing requests and routing to different micro services.
3.4K
This Docker image provides a Spring Boot-based API Gateway for the URL Shortener project. It acts as a reverse proxy, routing requests to various backend services within a microservices architecture, enabling scalable and efficient management of URL shortening and analytics operations.
Pull the Docker Image:
To begin, pull the Docker image from Docker Hub:
docker pull akgarg0472/urlshortener-api-gateway:latest
Run the Docker Container:
After pulling the image, you can run the API Gateway in a Docker container using the following command:
docker run -d \
-p 8765:8765 \
-e API_GATEWAY_LOG_PATH=/tmp/logs/apigateway \
-e API_GATEWAY_LOG_LEVEL=INFO \
-e API_GATEWAY_LOGGER_REF=consoleLogger \
-v /host/path/to/logs:/tmp/logs/ \
--network=host \
--name api-gateway \
akgarg0472/urlshortener-api-gateway:latest
This will:
Access the API Gateway:
Once the container is running, you can access the API Gateway via your browser at:
http://localhost:8765
Configuration Options:
You can customize the container's behavior by passing environment variables when you run the container. The available options are:
API_GATEWAY_LOG_PATH: Specify the path where logs should be stored.
API_GATEWAY_LOG_LEVEL: Set the log verbosity level (e.g., INFO, DEBUG).
API_GATEWAY_LOGGER_REF: Choose the log output type (consoleLogger or fileLogger).
For more details or customization, you can refer to the GitHub repository.
Content type
Image
Digest
sha256:1282c6bb8…
Size
117.2 MB
Last updated
over 1 year ago
docker pull akgarg0472/urlshortener-api-gateway