Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PostgreSQL Cluster Console (UI/API) #667

Merged
merged 73 commits into from
Aug 18, 2024
Merged

PostgreSQL Cluster Console (UI/API) #667

merged 73 commits into from
Aug 18, 2024

Conversation

vitabaks
Copy link
Owner

@vitabaks vitabaks commented May 29, 2024

Issue: #589
Related PR: #464

Created with the support of @gslabs-dev

How to run for test

1. Run the Console container

To run the PostgreSQL Cluster Console, execute the following command:

docker run -d --name pg-console \
  --publish 80:80 \
  --publish 8080:8080 \
  --env PG_CONSOLE_API_URL=http://localhost:8080/api/v1 \
  --env PG_CONSOLE_AUTHORIZATION_TOKEN=secret_token \
  --volume console_postgres:/var/lib/postgresql \
  --volume /var/run/docker.sock:/var/run/docker.sock \
  --volume /tmp/ansible:/tmp/ansible \
  --restart=unless-stopped \
  vitabaks/postgresql_cluster_console:console

Note: It is recommended to run the console in the same network as your database servers to enable monitoring of the cluster status. In this case, replace localhost with your server's IP address in the PG_CONSOLE_API_URL variable.

2. Open the Console UI

Open the console UI at the following address: http://localhost
If you have set up the console on a different server, replace 'localhost' with the server's address.

Use secret_token for authorization, or use the value of your token if you have redefined it in the PG_CONSOLE_AUTHORIZATION_TOKEN variable.

@vitabaks vitabaks self-assigned this May 29, 2024
@vitabaks vitabaks marked this pull request as draft May 29, 2024 09:26
@vitabaks vitabaks merged commit 23d0219 into master Aug 18, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants