Skip to content

Instantly share code, notes, and snippets.

@tivrfoa
Created September 13, 2020 18:41
Show Gist options
  • Select an option

  • Save tivrfoa/3e50cd405fcfd8d5c461c7d21db8db39 to your computer and use it in GitHub Desktop.

Select an option

Save tivrfoa/3e50cd405fcfd8d5c461c7d21db8db39 to your computer and use it in GitHub Desktop.
Running PostgreSQL on Docker
# Want to start a PostgreSQL server on the side with Docker?
docker run --ulimit memlock=-1:-1 -it --rm=true --memory-swappiness=0 \
--name postgres-quarkus-hibernate -e POSTGRES_USER=hibernate \
-e POSTGRES_PASSWORD=hibernate -e POSTGRES_DB=hibernate_db \
-p 5432:5432 postgres:10.5
# then you can use the client: pgadmin3 connecting to localhost:5432
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment