Returns current time and public IP in JSON. Lightweight, fast, and Docker-ready.
222
SimpleTimeService is a lightweight service that displays the current timestamp and the public IPv4 address of the host machine. The output is presented in the following format:
{
"timestamp": "15/04/2025 06:29:48 AM",
"ip": "49.37.100.55"
}
The Docker image for the service is available on Docker Hub. You can pull it with the following command:
docker pull partha51613/simple-time-service:latest
https://hub.docker.com/r/partha51613/simple-time-service
https://github.com/partha51613/SimpleTimeService
The preferred way to run SimpleTimeService is by using Docker Compose. You may also run the container manually using docker run instead of compose
Ensure you have the following dependencies installed before running the service:
git clone https://github.com/partha51613/SimpleTimeService.git
cd SimpleTimeService
docker-compose up -d
This command will:
The application can be accessed on the following ip (if run using docker-compose)
http://localhost:3001
To stop and remove the container, use the following command:
docker-compose down
Content type
Image
Digest
sha256:52ce6d61a…
Size
43.1 MB
Last updated
over 1 year ago
docker pull partha51613/simple-time-service