Skip to content

Commit

Permalink
fix(docker-compose.yml): make sure it works on macOS (#318)
Browse files Browse the repository at this point in the history
I am not super happy about exposing 80 and 443 because that would break
running docker-compose on a host that enforces privileged ports.

The fixes in this diff are such that I can run the instructions provided
in the README.md and access ndt7 endpoints.

Sadly, I have no way of testing this on Windows.
  • Loading branch information
bassosimone authored Aug 17, 2020
1 parent 3630aaa commit f8bed0a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,19 @@ services:
cap_drop:
- ALL
ports:
- "443:4443"
- target: 4443
published: 4443
protocol: tcp
mode: bridge
- target: 8080
published: 8080
protocol: tcp
mode: bridge
command: [
"./ndt-server",
"-cert", "/certs/cert.pem",
"-key", "/certs/key.pem",
"-datadir", "/datadir",
"-ndt7_addr", ":4443"
"-ndt7_addr", ":4443",
"-ndt7_addr_cleartext", ":8080"
]

0 comments on commit f8bed0a

Please sign in to comment.