postgrest-docs
postgrest-docs copied to clipboard
Example code to show how to install pgjwt extension in docker.
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;
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.