github.com/m3db/m3@v1.5.1-0.20231129193456-75a402aa583b/docker-compose.yml (about) 1 version: "3" 2 3 services: 4 app: 5 build: 6 context: . 7 dockerfile: Dockerfile 8 volumes: 9 - .:/go/src/github.com/m3db/m3 10 - /usr/bin/buildkite-agent:/usr/bin/buildkite-agent 11 # Support running docker within docker. That is, buildkite jobs themselves run in a container; that container 12 # needs to be able to spin up functioning docker containers. 13 - /var/run/docker.sock:/var/run/docker.sock 14 extra_hosts: 15 # Allow routing from the buildkite container to the host machine, as host.docker.internal. This allows us to do 16 # the following: 17 # - Spin up an etcd container with ports published to the host machine 18 # - Connect to the etcd container from the buildkite test process using host.docker.internal 19 # See 20 # https://medium.com/@TimvanBaarsen/how-to-connect-to-the-docker-host-from-inside-a-docker-container-112b4c71bc66 21 - "host.docker.internal:host-gateway" 22 environment: 23 - CI 24 - BUILDKITE 25 - BUILDKITE_AGENT_ACCESS_TOKEN 26 - BUILDKITE_JOB_ID 27 - BUILDKITE_BUILD_ID 28 - BUILDKITE_BUILD_NUMBER 29 - BUILDKITE_BRANCH 30 - BUILDKITE_BUILD_URL 31 - BUILDKITE_PROJECT_SLUG 32 - BUILDKITE_COMMIT 33 - BUILDKITE_PULL_REQUEST 34 - BUILDKITE_TAG 35 - CODECOV_TOKEN 36 - SPLIT_IDX 37 - TOTAL_SPLITS