Tianon Gravi 11 éve
szülő
commit
d68de68f61
3 módosított fájl, 20 hozzáadás és 0 törlés
  1. 0 0
      postgres/.keep
  2. 1 0
      postgres/README-short.txt
  3. 19 0
      postgres/README.md

+ 0 - 0
postgres/.keep


+ 1 - 0
postgres/README-short.txt

@@ -0,0 +1 @@
+PostgreSQL is a powerful, open source object-relational database system. It has a proven architecture that has earned it a strong reputation for reliability, data integrity, and correctness.

+ 19 - 0
postgres/README.md

@@ -0,0 +1,19 @@
+# What is PostgreSQL?
+PostgreSQL, often simply "Postgres", is an object-relational database management system (ORDBMS) with an emphasis on extensibility and standards-compliance. As a database server, its primary function is to store data, securely and supporting best practices, and retrieve it later, as requested by other software applications, be it those on the same computer or those running on another computer across a network (including the Internet). It can handle workloads ranging from small single-machine applications to large Internet-facing applications with many concurrent users. Recent versions also provide replication of the database itself for security and scalability.
+
+PostgreSQL implements the majority of the SQL:2011 standard, is ACID-compliant and transactional (including most DDL statements) avoiding locking issues using multiversion concurrency control (MVCC), provides immunity to dirty reads and full serializability; handles complex SQL queries using many indexing methods that are not available in other databases; has updateable views and materialized views, triggers, foreign keys; supports functions and stored procedures, and other expandability, and has a large number of extensions written by third parties. In addition to the possibility of working with the major proprietary and open source databases, PostgreSQL supports migration from them, by its extensive standard SQL support and available migration tools. And if proprietary extensions had been used, by its extensibility that can emulate many through some built-in and third-party open source compatibility extensions, such as for Oracle.
+
+> [wikipedia.org/wiki/PostgreSQL](https://en.wikipedia.org/wiki/PostgreSQL)
+
+# How to use this image
+
+## start a postgres instance
+    docker run --name some-postgres -d postgres
+
+This image includes `EXPOSE 5432` (the postgres port), so standard container linking will make it automatically available to the linked containers (as the following examples illustrate).
+
+## connect to it from an application
+    docker run --name some-app --link some-postgres:postgres -d application-that-uses-postgres
+
+## ... or via `psql`
+    docker run -it --link some-postgres:postgres --rm postgres sh -c 'exec psql -h "$POSTGRES_PORT_5432_TCP_ADDR" -p "$POSTGRES_PORT_5432_TCP_PORT" -U postgres'