mirror of
https://github.com/docker/awesome-compose.git
synced 2025-04-26 02:38:07 +02:00
Arm64 and check Compose v2 support (#177)
add support of arm64 architecture for the following samples: * aspnet-mssql * elasticsearch-logstash-kibana * nginx-aspnet-mysql * nginx-flask-mysql * nginx-golang-mysql * react-java-mysql * sparkjava-mysql * wordpress-mysql * react-express-mysql * react-express-mongodb Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
This commit is contained in:
parent
d48e8350ea
commit
4bba832f88
23 changed files with 3155 additions and 5800 deletions
8
react-express-mongodb/backend/db/index.js
vendored
8
react-express-mongodb/backend/db/index.js
vendored
|
@ -7,11 +7,7 @@ exports.connect = (app) => {
|
|||
const options = {
|
||||
useNewUrlParser: true,
|
||||
autoIndex: false, // Don't build indexes
|
||||
reconnectTries: 30, // Retry up to 30 times
|
||||
reconnectInterval: 500, // Reconnect every 500ms
|
||||
poolSize: 10, // Maintain up to 10 socket connections
|
||||
// If not connected, return errors immediately rather than waiting for reconnect
|
||||
bufferMaxEntries: 0,
|
||||
maxPoolSize: 10, // Maintain up to 10 socket connections
|
||||
};
|
||||
|
||||
const connectWithRetry = () => {
|
||||
|
@ -24,7 +20,7 @@ exports.connect = (app) => {
|
|||
app.emit("ready");
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log("MongoDB connection unsuccessful, retry after 2 seconds.");
|
||||
console.log("MongoDB connection unsuccessful, retry after 2 seconds.", err);
|
||||
setTimeout(connectWithRetry, 2000);
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue