Skip to content

Agensgraph Docker image based on official PostgreSQL image

License

Notifications You must be signed in to change notification settings

bbc/agensgraph-docker

 
 

Repository files navigation

Agensgraph Docker

This is a Agensgraph Docker image based on the official PostgreSQL Docker image (not on Agensgraph's image, which has some issues). The current Agensgraph source is based on PostgreSQL 10.3.

Building

git clone https://github.com/turicas/agensgraph-docker.git
docker build -t turicas/agensgraph:2.1.3 agensgraph-docker/10

Running

To have a better experience, you may want to have a specific password, a separate volume for data, change the shared memory size and publish the server port into the host machine:

docker run \
	--name=myagens \
	--env POSTGRES_PASSWORD=myprecious \
	--env PGDATA=/var/lib/postgresql/data/pgdata \
	--env GRAPH_DB=agens \
	--volume $(pwd)/agens-data:/var/lib/postgresql/data \
	--shm-size=256MB \
	--publish 15432:5432 \
	--detach \
	turicas/agensgraph:2.1.3

Note: agens is the default graph name and you don't need to pass GRAPH_DB if you don't want to change it.

You can then connect to the server from the host machine:

psql postgres://postgres:myprecious@localhost:15432/postgres
# then: SET graph_path = agens; ...

Check also the official PostgreSQL Docker image documentation.

About

Agensgraph Docker image based on official PostgreSQL image

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 64.1%
  • Dockerfile 35.9%