Allow all IPv4 interfaces (for docker)

This commit is contained in:
Raymonzut
2020-05-14 20:16:26 +02:00
parent 64148746f1
commit 1ed4ba3a4a
+1 -1
View File
@@ -13,7 +13,7 @@ const port = process.env.PORT || 5000
const start = async () => { const start = async () => {
try { try {
await fastify.listen(port) await fastify.listen(port, '0.0.0.0')
console.log(`Launched on port ${port} 🚀`) console.log(`Launched on port ${port} 🚀`)
} catch (err) { } catch (err) {
fastify.log.error(err) fastify.log.error(err)