Merge pull request #4478 from consul/update_posgres_docker
Use a maintained PostgreSQL version in Docker
This commit is contained in:
@@ -38,7 +38,7 @@ You can access the main website of the project at [http://consulproject.org](htt
|
|||||||
|
|
||||||
**NOTE**: For more detailed instructions check the [docs](https://docs.consulproject.org)
|
**NOTE**: For more detailed instructions check the [docs](https://docs.consulproject.org)
|
||||||
|
|
||||||
Prerequisites: install git, Ruby 2.6.6, CMake, pkg-config, shared-mime-info, Node.js and PostgreSQL (>=9.4).
|
Prerequisites: install git, Ruby 2.6.6, CMake, pkg-config, shared-mime-info, Node.js and PostgreSQL (>=9.5).
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/consul/consul.git
|
git clone https://github.com/consul/consul.git
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ Puedes acceder a la página principal del proyecto en [http://consulproject.org]
|
|||||||
|
|
||||||
**NOTA**: para unas instrucciones más detalladas consulta la [documentación](https://docs.consulproject.org)
|
**NOTA**: para unas instrucciones más detalladas consulta la [documentación](https://docs.consulproject.org)
|
||||||
|
|
||||||
Prerequisitos: tener instalado git, Ruby 2.6.6, CMake, pkg-config, shared-mime-info, Node.js y PostgreSQL (9.4 o superior).
|
Prerequisitos: tener instalado git, Ruby 2.6.6, CMake, pkg-config, shared-mime-info, Node.js y PostgreSQL (9.5 o superior).
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/consul/consul.git
|
git clone https://github.com/consul/consul.git
|
||||||
|
|||||||
@@ -5,8 +5,9 @@ services:
|
|||||||
|
|
||||||
# use the preferred version of the official Postgres image
|
# use the preferred version of the official Postgres image
|
||||||
# see https://hub.docker.com/_/postgres/
|
# see https://hub.docker.com/_/postgres/
|
||||||
image: postgres:9.4.5
|
image: postgres:9.6.21
|
||||||
|
environment:
|
||||||
|
- POSTGRES_PASSWORD=$POSTGRES_PASSWORD
|
||||||
# persist the database between containers by storing it in a volume
|
# persist the database between containers by storing it in a volume
|
||||||
volumes:
|
volumes:
|
||||||
- docker-example-postgres:/var/lib/postgresql/data
|
- docker-example-postgres:/var/lib/postgresql/data
|
||||||
@@ -37,6 +38,7 @@ services:
|
|||||||
- bundle:/usr/local/bundle:delegated
|
- bundle:/usr/local/bundle:delegated
|
||||||
- "$SSH_AUTH_SOCK:/tmp/agent.sock"
|
- "$SSH_AUTH_SOCK:/tmp/agent.sock"
|
||||||
environment:
|
environment:
|
||||||
|
- POSTGRES_PASSWORD=$POSTGRES_PASSWORD
|
||||||
- SSH_AUTH_SOCK=/tmp/agent.sock
|
- SSH_AUTH_SOCK=/tmp/agent.sock
|
||||||
volumes:
|
volumes:
|
||||||
docker-example-postgres: {}
|
docker-example-postgres: {}
|
||||||
|
|||||||
Reference in New Issue
Block a user