postgrest-docs icon indicating copy to clipboard operation
postgrest-docs copied to clipboard

Example code to show how to install pgjwt extension in docker.

Open Rackar opened this issue 5 years ago • 1 comments

I know little about docker and postgresql, So I got stuck a day when I follewed the auth doc to install pgjwt extension in docker.

Here is my example code, for the guys confused like me.

su root
mkdir /dshare && cd /dshare
git clone https://github.com/michelp/pgjwt
docker run --name postgres -p 5433:5432 -v /dshare:/dshare \
                -e POSTGRES_PASSWORD=mysecretpassword \
                -d postgres
docker exec -it postgres bash
apt-get update
apt-get install make
cd /dshare/pgjwt
make install
psql -U postgres
create extension if not exists pgcrypto;
create extension pgjwt;

Rackar avatar Mar 12 '20 02:03 Rackar

Sorry about the confusion caused.

I'll see where I can accommodate the pgwjt installation. There isn't a proper tutorial for that part yet.

Related to #240.

steve-chavez avatar Mar 12 '20 17:03 steve-chavez