Skip to content

Instantly share code, notes, and snippets.

@anon5r
Created March 25, 2016 01:30
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 anon5r/e62635bb26e38dd77238 to your computer and use it in GitHub Desktop.
Save anon5r/e62635bb26e38dd77238 to your computer and use it in GitHub Desktop.
To control PostgreSQL with SQL queries in GitLab omnibus docker image
#!/bin/sh
#sudo docker exec -it gitlab /opt/gitlab/embedded/bin/psql -h /var/opt/gitlab/postgresql -U gitlab -d gitlabhq_production
sudo docker exec -it gitlab sudo -u gitlab-psql /opt/gitlab/embedded/bin/psql --port 5432 -h /var/opt/gitlab/postgresql -d gitlabhq_production
psql
@anon5r
Copy link
Author

anon5r commented Mar 25, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment