From af36d77317af7e991bc82adf9cdac9660bb5c922 Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Sat, 16 May 2020 17:52:49 +0900 Subject: [PATCH] create fly.io apps file --- Dockerfile | 5 +++++ fly.toml | 22 ++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 Dockerfile create mode 100644 fly.toml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..cecbe65 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM node:alpine +ADD package.json . +RUN npm i +ADD index.js . +CMD ["npm","start"] diff --git a/fly.toml b/fly.toml new file mode 100644 index 0000000..57a37d8 --- /dev/null +++ b/fly.toml @@ -0,0 +1,22 @@ +app = "http-echo" + + +[[services]] + internal_port = 8080 + protocol = "tcp" + + [services.concurrency] + hard_limit = 25 + soft_limit = 20 + + [[services.ports]] + handlers = ["http"] + port = "80" + + [[services.ports]] + handlers = ["tls", "http"] + port = "443" + + [[services.tcp_checks]] + interval = 10000 + timeout = 2000