Set up PostgreSQL with Apache AGE using Docker
mainApache-Age Viewer requires a running PostgreSQL database server with the Apache AGE extension. The easiest way to set this up is using Docker.
Pull the official image:
docker pull apache/ageRun the container with the following configuration:
docker run --name myPostgresDb -p 5455:5432 -e POSTGRES_USER=postgresUser -e POSTGRES_PASSWORD=postgresPW -e POSTGRES_DB=postgresDB -d apache/ageAfter starting the container, follow the Apache AGE Post-Installation instructions to create a graph in the database.
Docker Flags Used:
--name: Assigns a name to the container (e.g.,myPostgresDb).-p: Publishes the container's port to the host (mapping host5455to container5432).-e: Sets environment variables forPOSTGRES_USER,POSTGRES_PASSWORD, andPOSTGRES_DB.
docker pull apache/age
docker run --name myPostgresDb -p 5455:5432 -e POSTGRES_USER=postgresUser \
-e POSTGRES_PASSWORD=postgresPW -e POSTGRES_DB=postgresDB -d apache/age