diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fba6fdc --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.postgres-data/ \ No newline at end of file diff --git a/README.md b/README.md index 0410812..33e2ad2 100644 --- a/README.md +++ b/README.md @@ -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 :/ +docker cp schema.sql reverse-hash-service-db-1:/ # Exec to container -docker exec -it /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