https://github.com/wkrzywiec/docker-postgres
Postgres Dockerfile with simple SQL script
https://github.com/wkrzywiec/docker-postgres
docker dockerfile postgres postgresql
Last synced: 4 months ago
JSON representation
Postgres Dockerfile with simple SQL script
- Host: GitHub
- URL: https://github.com/wkrzywiec/docker-postgres
- Owner: wkrzywiec
- Created: 2019-06-25T04:33:33.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-06T10:14:26.000Z (over 6 years ago)
- Last Synced: 2025-06-21T00:06:59.020Z (4 months ago)
- Topics: docker, dockerfile, postgres, postgresql
- Language: Dockerfile
- Size: 1000 Bytes
- Stars: 8
- Watchers: 1
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Docker-Postgres
Simple Docker project that runs Postgres database.
### How to run it?
First get this project on your local machine:
```
$ git clone https://github.com/wkrzywiec/docker-postgres.git
```Next, in destination folder type following commands:
```
$ docker build -t test-postgres .
```and then to run the container:
```
$ docker run -p 5432:5432 test-postgres
```You should be able to connect to the database with following connectors:
- Host: **localhost**
- Port: **5432**
- Database: **testdb**
- User: **postgres**
- Password: **postgres**### More info
This tiny project is part of the an article: [Database in a Docker container — how to start and what’s it about](https://medium.com/@wkrzywiec/database-in-a-docker-container-how-to-start-and-whats-it-about-5e3ceea77e50)