summaryrefslogtreecommitdiffstats
path: root/Services/postgres/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'Services/postgres/README.md')
-rw-r--r--Services/postgres/README.md41
1 files changed, 31 insertions, 10 deletions
diff --git a/Services/postgres/README.md b/Services/postgres/README.md
index 73f4037..40881af 100644
--- a/Services/postgres/README.md
+++ b/Services/postgres/README.md
@@ -1,14 +1,35 @@
-STARTX docker-images - Postgres
-===============================
+# STARTX Services docker-images : PostgreSQL Server
+This container run postgres on fedora server.
-**Description**
-Based on the docker [default postgres](https://registry.hub.docker.com/u/library/postgres/) Dockerfile
+## Running from docker registry
-**Usage**
-
- docker run -d -p 5432:5432 startx/sv-postgres
- docker run -d -p 5432:5432 --name="test-postgres" startx/sv-postgres
+ # docker run -d -p 5432:5432 --name="postgres" startx/sv-postgres
+ # when linked to another container
+ # docker run -d --name="postgres" startx/sv-postgres
+ # docker run -d --name="php" --link postgres:postgres startx/sv-php
- docker run -d --name="test-postgres" startx/sv-postgres // linked to another container
- docker run -d --name="test-www" --link test-postgres:postgres startx/sv-php
+## Build and run from local Dockerfile
+### Building docker image
+Copy the sources to your docker host
+ mkdir startx-docker-images;
+ cd startx-docker-images;
+ git clone https://github.com/startxfr/docker-images.git .
+
+and build the container
+
+ docker build -t sv-postgres Services/postgres/
+
+### Running local image
+
+ # docker run -d -p 5432:5432 --name="postgres" sv-postgres
+
+## Accessing server
+
+ # psql -U postgres -h localhost -p 5432
+
+## Related Resources
+* [Sources files](https://github.com/startxfr/docker-images/tree/master/Services/postgres)
+* [Github STARTX profile](https://github.com/startxfr/docker-images)
+* [Docker registry for this container](https://registry.hub.docker.com/u/startx/sv-postgres/)
+* [Docker registry for Fedora](https://registry.hub.docker.com/u/fedora/)