Skip to content

Commit

Permalink
Merge pull request #2537 from DataDog/ivoanjo/docker-bind-to-localhost
Browse files Browse the repository at this point in the history
Expose development docker container ports to localhost only
  • Loading branch information
ivoanjo authored Jan 20, 2023
2 parents cbbbc51 + db8aae8 commit 016c364
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
22 changes: 11 additions & 11 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,8 @@ services:
- "8125/udp"
- "8126"
ports:
- "${DD_METRIC_AGENT_PORT}:8125/udp"
- "${DD_TRACE_AGENT_PORT}:8126"
- "127.0.0.1:${DD_METRIC_AGENT_PORT}:8125/udp"
- "127.0.0.1:${DD_TRACE_AGENT_PORT}:8126"
volumes:
- ddagent_var_run:/var/run/datadog
elasticsearch:
Expand All @@ -377,8 +377,8 @@ services:
- "9200"
- "9300"
ports:
- "${TEST_ELASTICSEARCH_REST_PORT}:9200"
- "${TEST_ELASTICSEARCH_NATIVE_PORT}:9300"
- "127.0.0.1:${TEST_ELASTICSEARCH_REST_PORT}:9200"
- "127.0.0.1:${TEST_ELASTICSEARCH_NATIVE_PORT}:9300"
environment:
# Ensure production cluster requirements are not enforced
- discovery.type=single-node
Expand All @@ -389,13 +389,13 @@ services:
expose:
- "11211"
ports:
- "${TEST_MEMCACHED_PORT}:11211"
- "127.0.0.1:${TEST_MEMCACHED_PORT}:11211"
mongodb:
image: mongo:3.6
expose:
- "27017"
ports:
- "${TEST_MONGODB_PORT}:27017"
- "127.0.0.1:${TEST_MONGODB_PORT}:27017"
mysql:
image: mysql:8
environment:
Expand All @@ -408,7 +408,7 @@ services:
expose:
- "3306"
ports:
- "${TEST_MYSQL_PORT}:3306"
- "127.0.0.1:${TEST_MYSQL_PORT}:3306"
postgres:
image: postgres:9.6
environment:
Expand All @@ -418,27 +418,27 @@ services:
expose:
- "5432"
ports:
- "${TEST_POSTGRES_PORT}:5432"
- "127.0.0.1:${TEST_POSTGRES_PORT}:5432"
presto:
# Move to trinodb/trino after https://github.com/treasure-data/presto-client-ruby/issues/64 is resolved.
image: starburstdata/presto:332-e.9
expose:
- "8080"
ports:
- "${TEST_PRESTO_PORT}:8080"
- "127.0.0.1:${TEST_PRESTO_PORT}:8080"
redis:
image: redis:6.2
expose:
- "6379"
ports:
- "${TEST_REDIS_PORT}:6379"
- "127.0.0.1:${TEST_REDIS_PORT}:6379"
# `qless` is still using this older version of redis
redis_old:
image: redis:3.0
expose:
- "6379"
ports:
- "${TEST_REDIS_OLD_PORT}:6379"
- "127.0.0.1:${TEST_REDIS_OLD_PORT}:6379"
volumes:
bundle-2.1:
bundle-2.2:
Expand Down
2 changes: 1 addition & 1 deletion integration/apps/hanami/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ services:
expose:
- "80"
ports:
- "80:80"
- "127.0.0.1:80:80"
stdin_open: true
tty: true
volumes:
Expand Down
2 changes: 1 addition & 1 deletion integration/apps/rails-seven/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
expose:
- "80"
ports:
- "80:80"
- "127.0.0.1:80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
app:
Expand Down
2 changes: 1 addition & 1 deletion integration/apps/sinatra2-classic/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ services:
expose:
- "80"
# ports:
# - "80:80"
# - "127.0.0.1:80:80"
stdin_open: true
tty: true
volumes:
Expand Down
2 changes: 1 addition & 1 deletion integration/apps/sinatra2-modular/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ services:
expose:
- "80"
# ports:
# - "80:80"
# - "127.0.0.1:80:80"
stdin_open: true
tty: true
volumes:
Expand Down

0 comments on commit 016c364

Please sign in to comment.