Skip to content

Commit 35797be

Browse files
authored
docs: updating postgres version in docs to 14 (#1239)
1 parent 920a7b8 commit 35797be

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

running_an_api.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ We'll be using:
8181
$ mkdir -p ./stacks-node/{persistent-data/postgres,persistent-data/stacks-blockchain,bns,config}
8282
$ docker pull blockstack/stacks-blockchain-api \
8383
&& docker pull blockstack/stacks-blockchain \
84-
&& docker pull postgres:alpine
84+
&& docker pull postgres:14-alpine
8585
$ docker network create stacks-blockchain > /dev/null 2>&1
8686
$ cd ./stacks-node
8787
```
@@ -108,7 +108,7 @@ done
108108

109109
## Postgres
110110

111-
The `postgres:alpine` image can be run with default settings, the only requirement is that a password Environment Variable is set for the `postgres` user: `POSTGRES_PASSWORD=postgres`
111+
The `postgres:14-alpine` image can be run with default settings, the only requirement is that a password Environment Variable is set for the `postgres` user: `POSTGRES_PASSWORD=postgres`
112112

113113
### Starting postgres
114114

@@ -119,15 +119,15 @@ docker run -d --rm \
119119
-e POSTGRES_PASSWORD=postgres \
120120
-v $(pwd)/persistent-data/postgres:/var/lib/postgresql/data \
121121
-p 5432:5432 \
122-
postgres:alpine
122+
postgres:14-alpine
123123
```
124124

125125
There should now be a running postgres instance running on port `5432`:
126126

127127
```bash
128128
$ docker ps --filter name=postgres
129129
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
130-
f835f3a8cfd4 postgres:alpine "docker-entrypoint.s…" 1 minute ago Up 1 minute 0.0.0.0:5432->5432/tcp, :::5432->5432/tcp postgres
130+
f835f3a8cfd4 postgres:14-alpine "docker-entrypoint.s…" 1 minute ago Up 1 minute 0.0.0.0:5432->5432/tcp, :::5432->5432/tcp postgres
131131
```
132132

133133
### Stopping Postgres

running_api_from_source.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ $ cd /stacks-node
4343
## Install Requirements
4444

4545
```bash
46-
$ PG_VERSION=12 \
46+
$ PG_VERSION=14 \
4747
&& NODE_VERSION=16 \
4848
&& sudo apt-get update \
4949
&& sudo apt-get install -y \
@@ -99,7 +99,7 @@ create database stacks_db;
9999
grant all on database stacks_db to stacks;
100100
EOF
101101
$ sudo su - postgres -c "psql -f /tmp/file.sql" && rm -f /tmp/file.sql
102-
$ echo "local all stacks md5" | sudo tee -a /etc/postgresql/12/main/pg_hba.conf
102+
$ echo "local all stacks md5" | sudo tee -a /etc/postgresql/14/main/pg_hba.conf
103103
$ sudo systemctl restart postgresql
104104
```
105105

0 commit comments

Comments
 (0)