Skip to content

Commit ba15b08

Browse files
authored
Readd ME_CONFIG_CONNECT_RETRIES with 10 max_tries as default (#56)
ME_CONFIG_CONNECT_RETRIES is removed by mistake in #70
1 parent d2a983d commit ba15b08

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

1.0/18-alpine3.18/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

1.0/18-alpine3.19/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

1.0/20-alpine3.18/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

1.0/20-alpine3.19/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Name | Default | Description
5353
`ME_CONFIG_MONGODB_URL` | `mongodb://mongo:27017` | MongoDB connection string
5454
`ME_CONFIG_BASICAUTH_USERNAME` | | mongo-express web username
5555
`ME_CONFIG_BASICAUTH_PASSWORD` | | mongo-express web password
56-
`ME_CONFIG_CONNECT_RETRIES` | `5` | Number of startup connection retry attempts to be made
56+
`ME_CONFIG_CONNECT_RETRIES` | `10` | Number of startup connection retry attempts to be made
5757
`ME_CONFIG_MONGODB_ENABLE_ADMIN` | `true` | Enable admin access to all databases. Send strings: `"true"` or `"false"`
5858
`ME_CONFIG_OPTIONS_EDITORTHEME` | `default` | mongo-express editor color theme, [more here](http://codemirror.net/demo/theme.html)
5959
`ME_CONFIG_REQUEST_SIZE` | `100kb` | Maximum payload size. CRUD operations above this size will fail in [body-parser](https://www.npmjs.com/package/body-parser).

docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ if [[ "$ME_CONFIG_MONGODB_URL" != *,* ]]; then
4040

4141
# wait for the mongo server to be available
4242
echo "Waiting for $host:$port..."
43-
wait_tcp_port "$host" "$port"
43+
wait_tcp_port "$host" "$port" "${ME_CONFIG_CONNECT_RETRIES:-10}"
4444
fi
4545

4646
# run mongo-express

0 commit comments

Comments
 (0)