Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.postgres-data/
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,14 @@ go build && ./reverse-hash-service
## Run service with docker-compose.yml file

```console
# Run docker-compose
docker-compose up -d
# Run docker compose
docker compose up -d

# Copy schema.sql to container with postgres
docker cp schema.sql <db_container_name>:/
docker cp schema.sql reverse-hash-service-db-1:/

# Exec to container
docker exec -it <db_container_name> /bin/bash

# Create rhs db
createdb -U iden3 -h localhost rhs
docker exec -it reverse-hash-service-db-1 /bin/bash

# Upload schema.sql inside on docker container
psql -h localhost -U iden3 -d rhs < schema.sql
Expand Down