This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# With Alchemy GraphQL Webhooks you can ingest real-time updates for every block | |
# in a reliable, scalable, and secure way! | |
# | |
# If you're new to GraphQL, this editor has autocomplete enabled and will magically | |
# suggest fields as you start typing. If you get lost, you can always search the | |
# available queries in the docs tab on the right! | |
# | |
# To get you started, here's a GraphQL query that will get you all log events for | |
# every new block. Each log also includes a full transaction receipt! | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.7' | |
services: | |
nodejs: | |
image: localhost:5000/docker-zero-downtime-deployment | |
ports: | |
- "3000:3000" | |
command: node index.js | |
deploy: | |
replicas: 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:12 | |
# Create app directory | |
WORKDIR /usr/src/app | |
# Install app dependencies | |
COPY package*.json ./ | |
RUN npm install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const os = require('os'); | |
const express = require('express'); | |
// Constants | |
const PORT = 3000; | |
const HOST = '0.0.0.0'; | |
// App | |
const app = express(); |