Skip to content

Commit

Permalink
Added -dns-names localhost param in README and docker-compose.yml t…
Browse files Browse the repository at this point in the history
…o show how to use cert tool to have localhost working both on Linux and Windows
  • Loading branch information
oskardudycz committed Jan 22, 2021
1 parent fa5065b commit 5389768
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Generating a certificate authority:
Generating a certificate for an EventStoreDB node:

```
./es-gencert-cli-cli create-node -ca-certificate ./es-ca/ca.crt -ca-key ./es-ca/ca.key -out ./node1 -ip-addresses 127.0.0.1,172.20.240.1 -dns-names eventstore-node1.localhost.com
./es-gencert-cli-cli create-node -ca-certificate ./es-ca/ca.crt -ca-key ./es-ca/ca.key -out ./node1 -ip-addresses 127.0.0.1,172.20.240.1 -dns-names localhost,eventstore-node1.localhost.com
```

## Development
Expand Down
10 changes: 5 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '3.5'
version: "3.5"

services:
cert-gen:
Expand All @@ -7,10 +7,10 @@ services:
command: >
-c "es-gencert-cli create-ca -out /tmp/ca &&
es-gencert-cli create-node -ca-certificate /tmp/ca/ca.crt -ca-key /tmp/ca/ca.key -out \
/tmp/node1 -ip-addresses 127.0.0.1,172.20.240.1 -dns-names eventstore-node1.localhost.com &&
/tmp/node1 -ip-addresses 127.0.0.1,172.20.240.1 -dns-names localhost,eventstore-node1.localhost.com &&
es-gencert-cli create-node -ca-certificate /tmp/ca/ca.crt -ca-key /tmp/ca/ca.key -out \
/tmp/node2 -ip-addresses 127.0.0.1,172.20.240.2 -dns-names eventstore-node2.localhost.com &&
/tmp/node2 -ip-addresses 127.0.0.1,172.20.240.2 -dns-names localhost,eventstore-node2.localhost.com &&
es-gencert-cli create-node -ca-certificate /tmp/ca/ca.crt -ca-key /tmp/ca/ca.key -out \
/tmp/node3 -ip-addresses 127.0.0.1,172.20.240.3 -dns-names eventstore-node3.localhost.com"
/tmp/node3 -ip-addresses 127.0.0.1,172.20.240.3 -dns-names localhost,eventstore-node3.localhost.com"
volumes:
- "${PWD}:/tmp"
- "${PWD}:/tmp"

0 comments on commit 5389768

Please sign in to comment.