Trouble connecting from Windows host after switching to docker-compose

I can no longer connect to my official Elasticsearch container from my Windows host (using VirtualBox) since switching from docker run to docker-compose. Is there an extra step to open port 9200 when using compose? Ports are working for other containers (eg NetData) on the host and I know Elasticsearch is running because I can curl to it from inside other containers.

Here's my pretty standard compose config:

elasticsearch:
  image: "docker.elastic.co/elasticsearch/elasticsearch:5.4.3"
  ports:
   - "6379:6379"
  environment:
    http.host: "0.0.0.0"
    transport.host: "127.0.0.1"
    xpack.security.enabled: "false"
    ES_JAVA_OPTS: "-Xms512m -Xmx512m"

Here's the docker command that I can connect to on port 9200:

docker run --detach \
  --name elasticsearch \
  --publish 9200:9200 \
  --env "http.host=0.0.0.0" \
  --env "transport.host=127.0.0.1" \
  --env "xpack.security.enabled=false" \
  --env "ES_JAVA_OPTS=""-Xms512m -Xmx512m""" \
  docker.elastic.co/elasticsearch/elasticsearch:5.4.3

Edit: Disregard, I got my ES and Redis ports mixed up, oops! If a moderator reads this then please feel free to delete this rather silly question.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.