Skip to content

Commit

Permalink
Add docker-compose example
Browse files Browse the repository at this point in the history
  • Loading branch information
penumbra23 committed Aug 3, 2020
1 parent 4661ab8 commit 188c5fd
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# SharpNS

DNS server with RESTful API for managing records.
Expand All @@ -22,7 +23,19 @@ docker build -t dns-image .
docker run -p 80:80 dns-image
```

or use the public one from DockerHub (LINK HERE).
or use the public one from [DockerHub](https://hub.docker.com/r/penumbra23/sharpns).

## Docker Compose example

For running the example given by the `docker-compose` file, **first** make sure to delete the existing network, by simply running:

`docker-compose down`

After that run the example with:

`docker-compose up`

The `cli-tester` services uses the `sharpns` image as the desired DNS server. The CLI should printout the queried DNS records, both from the service and Google's public DNS server **8.8.8.8**.

## License
MIT

0 comments on commit 188c5fd

Please sign in to comment.