-
Notifications
You must be signed in to change notification settings - Fork 49
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
chore(postgres): Create a docker file to bring nwaku + PostgreSQL simultaneously. #1840
Comments
plan to migrate this https://github.com/alrevuelta/nwaku-compose to waku-org |
Morning Álvaro! I think that's a great idea :) |
Grafana as part of the docker compose like I have seen previously would be good. |
I don't know but I will explore it if is feasible :) |
You'll probably need to use postgres-exporter (https://github.com/prometheus-community/postgres_exporter) for Prometheus as it does not seem Postgres itself can expose the metrics directly, but it should be relatively straightforward to add it to the compose https://grafana.com/oss/prometheus/exporters/postgres-exporter/?tab=installation |
I submitted this PR but I cannot assign reviewers. https://github.com/alrevuelta/nwaku-compose/pull/3 @alrevuelta - I wonder if we could move this repo to the If not possible, I'd like to add you, @vpavlin, and @LordGhostX as reviewers :) Thanks in advance! |
Morning @LordGhostX ! We've completed the creation of a docker compose file that runs both Cheers! |
This has been finished as part of https://github.com/waku-org/nwaku-compose |
Background
Create a Docker Compose file that allows starting a Docker container with
nwaku
and the "store" protocol mounted plus another Docker container Postgres container.Details
To create the
nwaku
container, the next can be used as a reference:Where the
nodekey=d4735222265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35
should ideally be a random value each time thedocker compose -f ... up
is called.I'm not sure if some tweaks will be required re
localhost
in--store-message-db-url='postgres://postgres:test123@localhost:5432/postgres'
To create the Postgres container, the next
docker compose
can be used as a reference:Acceptance Criteria
The
nwaku
node should be able to act as a "store" node and be able to store/retrieve messages from the Postgres database.Post actions
Related issue
#1604
The text was updated successfully, but these errors were encountered: