{"id":25212975,"url":"https://github.com/arunkumar201/sql-playground","last_synced_at":"2026-01-18T19:01:32.478Z","repository":{"id":232059971,"uuid":"783336846","full_name":"arunkumar201/sql-playground","owner":"arunkumar201","description":"sql-playground","archived":false,"fork":false,"pushed_at":"2025-10-25T07:49:14.000Z","size":35,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-25T09:23:19.040Z","etag":null,"topics":["docker","docker-compose","postgresql","sql"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arunkumar201.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-07T16:00:22.000Z","updated_at":"2025-10-25T07:49:17.000Z","dependencies_parsed_at":"2024-04-28T15:25:25.616Z","dependency_job_id":"a1e60811-3a6e-4dcb-abba-05cdd5adcba7","html_url":"https://github.com/arunkumar201/sql-playground","commit_stats":null,"previous_names":["arunkumar201/sql-practice","arunkumar201/sql-playground"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/arunkumar201/sql-playground","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arunkumar201%2Fsql-playground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arunkumar201%2Fsql-playground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arunkumar201%2Fsql-playground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arunkumar201%2Fsql-playground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arunkumar201","download_url":"https://codeload.github.com/arunkumar201/sql-playground/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arunkumar201%2Fsql-playground/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28548944,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T14:59:57.589Z","status":"ssl_error","status_checked_at":"2026-01-18T14:59:46.540Z","response_time":98,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-compose","postgresql","sql"],"created_at":"2025-02-10T15:18:33.967Z","updated_at":"2026-01-18T19:01:32.461Z","avatar_url":"https://github.com/arunkumar201.png","language":"Dockerfile","readme":"# PostgreSQL Docker Setup\n\nDockerfile for setting up a PostgreSQL database locally using Docker.\n\n## Prerequisites\n\n- Docker installed on your machine.\n\n## Getting Started\n\nFollow these instructions to build and run the PostgreSQL Docker container.\n\n### Build the Docker Image\n\n1. Clone this repository to your local machine.\n2. Navigate to the directory containing the Dockerfile.\n3. Build the Docker image using the following command:\n\n   ```bash\n   docker build -t my-postgres-image .\n   ```\n\n### Run the Docker Container\n\n1. Run a container from the image with the following command:\n\n   ```bash\n   docker run --name my-postgres-container -d -p 5432:5432 my-postgres-image\n   ```\n\n   - `--name my-postgres-container`: Names the running container.\n   - `-d`: Runs the container in detached mode.\n   - `-p 5432:5432`: Maps the container's port 5432 to the host's port 5432.\n\n### Environment Variables\n\nThe following environment variables are set in the Dockerfile:\n\n- `POSTGRES_USER`: The username for the PostgreSQL database (default: `root`).\n- `POSTGRES_PASSWORD`: The password for the PostgreSQL database (default: `password`).\n- `POSTGRES_DB`: The default database to be created (default: `learning_sql`).\n\n### Accessing PostgreSQL\n\nYou can connect to the PostgreSQL database using any PostgreSQL client with the following credentials:\n\n- **Host**: `localhost`\n- **Port**: `5432`\n- **Username**: `root`\n- **Password**: `password`\n- **Database**: `learning_sql`\n\n### Stopping the Container\n\nTo stop the running container, use the following command:\n\n```bash\ndocker stop my-postgres-container\n```\n\n### Removing the Container\n\nTo remove the container, use the following command:\n\n```bash\ndocker rm my-postgres-container\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farunkumar201%2Fsql-playground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farunkumar201%2Fsql-playground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farunkumar201%2Fsql-playground/lists"}