Skip to content

Commit

Permalink
chore: Updated docker compose configuration (#2268)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsumners-nr authored Jun 12, 2024
1 parent 6c964b2 commit eb1cce9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3"
services:

elasticsearch:
Expand Down Expand Up @@ -63,7 +62,7 @@ services:

mongodb_3:
container_name: nr_node_mongodb
platform: linux/amd64
platform: ${DOCKER_PLATFORM:-linux/amd64}
image: library/mongo:3
ports:
- "27017:27017"
Expand All @@ -86,6 +85,8 @@ services:

mysql:
container_name: nr_node_mysql
# The `mysql:5` image does not have a `linux/arm64` build.
# We cannot use the latest mysql image because our tests fail.
platform: linux/amd64
image: mysql:5
ports:
Expand All @@ -111,15 +112,15 @@ services:

cassandra:
container_name: nr_node_cassandra
platform: linux/amd64
image: zmarcantel/cassandra
platform: ${DOCKER_PLATFORM:-linux/amd64}
image: cassandra
ports:
- "9042:9042"
healthcheck:
test: [ "CMD", "cqlsh", "-u cassandra", "-p cassandra"]
interval: 5s
timeout: 10s
retries: 6
retries: 20

# pg 9.2 has built in healthcheck
pg:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
"lint:fix": "eslint --fix, ./*.{js,mjs} lib test bin examples",
"public-docs": "jsdoc -c ./jsdoc-conf.jsonc && cp examples/shim/*.png out/",
"publish-docs": "./bin/publish-docs.sh",
"services": "docker compose up -d --wait",
"services": "DOCKER_PLATFORM=linux/$(uname -m) docker compose up -d --wait",
"services:stop": "docker compose down",
"smoke": "npm run ssl && time tap test/smoke/**/**/*.tap.js --timeout=180 --no-coverage",
"ssl": "./bin/ssl.sh",
Expand Down

0 comments on commit eb1cce9

Please sign in to comment.