MJinH commented on issue #23: URL: https://github.com/apache/age-viewer/issues/23#issuecomment-1253244891
Hello everyone, I'd like to share how to run pgAdmin using docker for those who might have difficulty in connecting database. First, you need to install docker. Here's a link for downloading docker: https://www.docker.com/. You can simply click the download button on the home page. After downloading it, in order to make sure the download was successful, you can run the following command in your terminal: docker version Now run the following command in your terminal to create a docker container with apache image: docker run -d --name AGEDB -e POSTGRES_USER=age -e POSTGRES_PASSWORD=age -p 5432:5432 apache/age:latest After creating a new container, now we need to access the pgAdmin4 to set up the postgreSQL connection and use if for the pgAdmin Docker setup. Select Servers -> Register -> Server The Name under the General tap is not essential which name you enter in the filed name as this is only for the organization within the tool. Click on the "Connection" tab, and in the field "username", "password", you will use the username and password that you specified in your docker compose. Here's how I did Name -> AGEDB Host name/address -> localhost Port -> 5432 Maintenance database -> age username -> age password -> age Now the connection to the database has been established, We can now run AGE Viewer program using "npm run start" command and enter host, username, password that we specified in connection. This link might be helpful and give you more idea how to set up the connection using Docker: https://towardsdatascience.com/how-to-run-postgresql-and-pgadmin-using-docker-3a6a8ae918b5 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
