Page MenuHomePhabricator

[keyserver] Update Node Docker Compose config to always restart
ClosedPublic

Authored by ashoat on May 2 2022, 7:21 AM.
Tags
None
Referenced Files
F3401987: D3884.diff
Mon, Dec 2, 2:50 PM
Unknown Object (File)
Sat, Nov 9, 10:49 PM
Unknown Object (File)
Sun, Nov 3, 3:18 PM
Unknown Object (File)
Oct 20 2024, 8:21 PM
Unknown Object (File)
Oct 19 2024, 11:17 AM
Unknown Object (File)
Oct 19 2024, 11:16 AM
Unknown Object (File)
Oct 19 2024, 11:16 AM
Unknown Object (File)
Oct 19 2024, 11:09 AM

Details

Summary

MySQL takes a while to start up, and Node will crash if MySQL (or Redis) doesn't respond.

We should probably make it so Node doesn't crash if it can't reach a service, and instead keeps retrying. But I actually think it's good to auto-restart the Node server either way here.

Test Plan

Run docker-compose up --build and make sure Node keeps restarting when it fails to connect to MySQL

Diff Detail

Repository
rCOMM Comm
Branch
ashoat/dockerize_node
Lint
No Lint Coverage
Unit
No Test Coverage