fix(docker): expose git service's 2222 through 0.0.0.0

Other ports we use are locked to 127.0.0.1. The `git` service,
however, already promotes security in its sshd service and
can't really be abused from an external source. This simplifies
the need to forward to localhost if deploy targets want the sshd
to be available.

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-11-21 23:11:02 -08:00
parent 41e0eaaece
commit 34747359ba
No known key found for this signature in database
GPG key ID: F7E46DED420788F3

View file

@ -104,7 +104,7 @@ services:
entrypoint: /docker/git-entrypoint.sh
command: /docker/scripts/run-sshd.sh
ports:
- "127.0.0.1:2222:2222"
- "2222:2222"
healthcheck:
test: "bash /docker/health/sshd.sh"
interval: 3s