|
1 | 1 | # Deis Database |
2 | 2 |
|
3 | | -A Docker image containing a PostgreSQL 9.3 database, for use in the [Deis](http://deis.io) open source PaaS. |
| 3 | +A PostgreSQL database for use in the [Deis](http://deis.io) open |
| 4 | +source PaaS. |
4 | 5 |
|
5 | 6 | [](https://index.docker.io/u/deis/database/) |
6 | 7 |
|
7 | 8 | [**Trusted Build**](https://index.docker.io/u/deis/database/) |
8 | 9 |
|
9 | | -This Docker image is based on the trusted build [deis/base](https://index.docker.io/u/deis/base/), which itself is based on the official [ubuntu:12.04](https://index.docker.io/_/ubuntu/) base image. |
| 10 | +This Docker image is based on the trusted build |
| 11 | +[deis/base](https://index.docker.io/u/deis/base/), which itself is based |
| 12 | +on the official [ubuntu:12.04](https://index.docker.io/_/ubuntu/) image. |
10 | 13 |
|
11 | | -Please add any issues you find with this software to the parent [Deis project](https://github.com/opdemand/deis/issues). |
| 14 | +Please add any issues you find with this software to the |
| 15 | +[Deis project](https://github.com/opdemand/deis/issues). |
12 | 16 |
|
13 | 17 | ## Usage |
14 | 18 |
|
15 | | -Coming Soon! |
| 19 | +* `make build` builds the *deis/database* image inside a vagrant VM |
| 20 | +* `make run` installs and starts *deis/database*, then displays log |
| 21 | + output from the container |
| 22 | + |
| 23 | +## Environment Variables |
| 24 | + |
| 25 | +* **DEBUG** enables verbose output if set |
| 26 | +* **ETCD_PORT** sets the TCP port on which to connect to the local etcd |
| 27 | + daemon (default: *4001*) |
| 28 | +* **ETCD_PATH** sets the etcd directory where the database announces |
| 29 | + its configuration (default: */deis/database*) |
| 30 | +* **ETCD_TTL** sets the time-to-live before etcd purges a configuration |
| 31 | + value, in seconds (default: *10*) |
| 32 | +* **PG_ADMIN_USER** sets the database admin user name (default: *postgres*) |
| 33 | +* **PG_ADMIN_PASS** sets the database admin user password |
| 34 | + (default: *changeme123*) |
| 35 | +* **PG_CONFIG** sets the PostgreSQL configuration file location |
| 36 | + (default: */etc/postgresql/9.3/main/postgresql.conf*) |
| 37 | +* **PG_LISTEN** sets the addresses on which the database will listen |
| 38 | + (default: *) |
| 39 | +* **PG_USER_NAME** sets the database user name for Deis (default: *deis*) |
| 40 | +* **PG_USER_PASS** sets the database user password for Deis |
| 41 | + (default: *changeme123*) |
| 42 | +* **PG_USER_DB** sets the database name used by Deis (default: *deis*) |
| 43 | +* **PORT** sets the TCP port on which the database listens (default: *5432*) |
16 | 44 |
|
17 | 45 | ## License |
18 | 46 |
|
19 | | -Copyright 2014 OpDemand LLC |
| 47 | +© 2014 OpDemand LLC |
20 | 48 |
|
21 | | -Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at <http://www.apache.org/licenses/LICENSE-2.0> |
| 49 | +Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 50 | +not use this file except in compliance with the License. You may obtain |
| 51 | +a copy of the License at <http://www.apache.org/licenses/LICENSE-2.0> |
22 | 52 |
|
23 | | -Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. |
| 53 | +Unless required by applicable law or agreed to in writing, software |
| 54 | +distributed under the License is distributed on an "AS IS" BASIS, |
| 55 | +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 56 | +See the License for the specific language governing permissions and |
| 57 | +limitations under the License. |
0 commit comments