Skip to content

Commit

Permalink
Don't expose unnecessary ports in docker-compose
Browse files Browse the repository at this point in the history
and make exposed ports configurable
  • Loading branch information
relud committed Dec 18, 2023
1 parent c534d29 commit 0d7a59f
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ services:
extends:
service: base
ports:
- "8000:8000"
- "${EXPOSE_ELIOT_PORT:-8000}:8000"
depends_on:
- fakesentry
- statsd
Expand Down Expand Up @@ -55,15 +55,11 @@ services:
context: docker/images/fakesentry
image: local/eliot_fakesentry
ports:
- "8090:8090"
- "${EXPOSE_SENTRY_PORT:-8090}:8090"
command: run --host 0.0.0.0 --port 8090

# https://hub.docker.com/r/hopsoft/graphite-statsd/
statsd:
image: hopsoft/graphite-statsd:latest
ports:
- "8081:80"
- "2003-2004:2003-2004"
- "2023-2024:2023-2024"
- "8125:8125/udp"
- "8126:8126"
- "${EXPOSE_STATSD_PORT:-8081}:80"

0 comments on commit 0d7a59f

Please sign in to comment.