Skip to content

Commit

Permalink
Limit docker-compose port bind to loopback (#5294)
Browse files Browse the repository at this point in the history
Resolves TOB-RGM-1

Signed-off-by: Samuel Giddins <[email protected]>
  • Loading branch information
segiddins authored Dec 2, 2024
1 parent 642d6b5 commit 9d18e7b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,27 @@ services:
db:
image: index.docker.io/library/postgres@sha256:e0892b968fb80d181a96f18bfef0a8a1693c2430fb2bc7392e65a53057eaa303 # 13.14
ports:
- "5432:5432"
- "127.0.0.1:5432:5432"
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
downloads-db:
image: index.docker.io/timescale/timescaledb@sha256:2e3a19fa4624addcb2bb8d37dfe2fee9e12597537b057a742c68aa226ed77da5 # 2.15.1-pg16
ports:
- "5434:5432"
- "127.0.0.1:5434:5432"
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
cache:
image: index.docker.io/library/memcached@sha256:f4504742a8fb03c3ac0cd172e1c1d2277117629f8d21d52f78307121ddc3de5f # 1.4.39
ports:
- "11211:11211"
- "127.0.0.1:11211:11211"
search:
image: index.docker.io/opensearchproject/opensearch@sha256:2e954ff0e8c9d0f4868b4818150b3aecc92fbb0cc4a24d00dace38ada227291d # 2.13.0
environment:
- discovery.type=single-node
- DISABLE_SECURITY_PLUGIN=true
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m"
ports:
- "9200:9200"
- "127.0.0.1:9200:9200"
healthcheck:
test:
[
Expand All @@ -38,7 +38,7 @@ services:
search-console:
image: index.docker.io/opensearchproject/opensearch-dashboards@sha256:d8f4442da4d0cb44865a5eab01c9eb9f00769e2d5f053d21e3ff3c64a50fc6ec # 2.13.0
ports:
- "5601:5601"
- "127.0.0.1:5601:5601"
environment:
- 'OPENSEARCH_HOSTS=["http://search:9200"]'
- "DISABLE_SECURITY_DASHBOARDS_PLUGIN=true"
Expand Down

0 comments on commit 9d18e7b

Please sign in to comment.