Skip to content

Instantly share code, notes, and snippets.

@rabmarjan
Last active November 17, 2018 12:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rabmarjan/a35ae40429f1195332aaf1069332b8a1 to your computer and use it in GitHub Desktop.
Save rabmarjan/a35ae40429f1195332aaf1069332b8a1 to your computer and use it in GitHub Desktop.
user.sh
docker run -it postgres10 bash
ln -s /tmp/.s.PGSQL.5432 /var/run/postgresql/.s.PGSQL.5432
su - postgres
psql
create user postgres password 'postgres';
alter user postgres with superuser;
create database postgres WITH owner=postgres encoding='UTF8';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment