Skip to content

Commit a99c418

Browse files
committed
update registrar docs on how to build the server with docker
1 parent f6a846b commit a99c418

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

node-registrar/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
run:
22
go run cmds/main.go --postgres-host localhost --postgres-port 5432 --postgres-db postgres --postgres-user postgres --postgres-password password --domain localhost --server-port 8080
33

4-
postgres:
4+
start-postgres:
55
docker run --name postgres -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=password -e POSTGRES_DB=postgres -p 5432:5432 -d postgres
66

77
stop-postgres:

node-registrar/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ Replace `<domain>` and `<port>` with the appropriate values.
8181

8282
## How to run the server with docker
8383

84-
1. use the docker file to build the docker image
84+
1. To use the docker file to build the docker image, run this command in the root directory of the sdk
8585

86-
```bash
87-
docker build -t registrar:latest .
88-
```
86+
```bash
87+
docker build -t myserver:latest -f node-registrar/Dockerfile .
88+
```
8989

9090
2. run the image
9191

0 commit comments

Comments
 (0)