Skip to content

Instantly share code, notes, and snippets.

@yuryalencar
Last active October 2, 2023 11:17
Show Gist options
  • Save yuryalencar/a6c65a1a0a01cbb90e98e66d13072efc to your computer and use it in GitHub Desktop.
Save yuryalencar/a6c65a1a0a01cbb90e98e66d13072efc to your computer and use it in GitHub Desktop.
Docker + pgModeler on MacOS/Linux

pgModeler: Configuring using Docker (macOS version).

Installation

For run this project is required: Docker and Homebrew installed in your mac.

  1. Install xquartz
brew install xquartz
  1. Open xquartz and allow connections
xquartz > preferences > security > [mark to allow connections]
  1. Update your .bashrc or .zshrc
vim ~/.zshrc
  1. Add above export in file
export DISPLAY=:0
  1. Close and open another terminal and check this update
xhost +
  1. Confirm this message
access control disabled, clients can connect from any host
  1. Create an directory to sync with docker
mkdir my-directory
  1. Get your ip and run docker
docker run -ti -e DISPLAY=<YOUR-IP-HERE>:0 -v $(pwd)/my-directory:/data apazga/docker-pgmodeler:0.9.3

8.1 On MacOs you can run

docker run -ti -e DISPLAY=$(ipconfig getifaddr en0):0 -v $(pwd)/my-directory:/data apazga/docker-pgmodeler:0.9.3

Use your pgModeler 🔥❤️

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