https://github.com/sxsid/docker1
https://github.com/sxsid/docker1
docker docker-compose
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sxsid/docker1
- Owner: SXsid
- Created: 2024-07-23T19:12:54.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-07-25T16:05:46.000Z (11 months ago)
- Last Synced: 2025-02-14T22:48:17.209Z (4 months ago)
- Topics: docker, docker-compose
- Language: TypeScript
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Basic Dockerized Application
This repository contains a basic Dockerized application that can be used for testing purposes. Follow the instructions below to set up and test the application.
## To Test
### Prerequisites
- Docker installed on your machine
- A PostgreSQL database URL### Steps
1. **Pull the Docker image:**
```sh
docker pull shekharx/basic:latest
```2. **Run the Docker container:**
```sh
docker run -d -e DATABASE_URL="put your postgres URL here" -p 3000:3000 shekharx/basic
```### Testing the Application
1. **GET Route:**
Open your web browser or use a tool like `curl` to test the GET route:
```sh
curl http://localhost:3000
```2. **POST Route:**
Use Postman or a similar tool to send a POST request with a unique email and name:
- **URL:** `http://localhost:3000`
- **Method:** `POST`- **Body:**
```json
{
"email": "[email protected]",
"name": "Your Name"
}
```---