Deploy Postgres by running a single Docker container
The following steps describe how to run the Postgres server in a Docker container.
In a terminal:
1
Clone the git repository ddhub-client-gateway
git clone https://github.com/energywebfoundation/ddhub-client-gateway.git2
Change the directory to the example directory
cd ddhub-client-gateway && cd get-started3
Start the Postgres servicedocker compose up postgres
docker compose up postgresThe example Postgres will have the user ddhub with password password123 and database ddhub created
4
Access the database via the connection string
postgresql://ddhub:password123@localhost:5432/ddhub
Last updated