Deploy to fly.io
Alan Pearce alan@alanpearce.eu
Sat, 01 Jul 2023 07:34:41 +0200
5 files changed, 52 insertions(+), 2 deletions(-)
A Dockerfile
@@ -0,0 +1,6 @@+FROM docker.io/caddy:2-alpine + +COPY Caddyfile /etc/caddy/ +COPY public /srv + +EXPOSE 9091/tcp
A fly.toml
@@ -0,0 +1,31 @@+# fly.toml file generated for alanpearce-eu on 2023-06-30T19:28:33+02:00 + +app = "alanpearce-eu" +kill_signal = "SIGINT" +kill_timeout = 5 +primary_region = "ams" + +[metrics] + port = 9091 + path = "/metrics" + +[env] + SITE_ROOT = "/srv" + +[http_service] + internal_port = 8080 + force_https = true + auto_stop_machines = true + auto_start_machines = true + min_machines_running = 1 + [http_service.concurrency] + type = "requests" + soft_limit = 2000 + hard_limit = 2500 + [[http_service.checks]] + grace_period = "10s" + interval = "30s" + method = "GET" + timeout = "5s" + path = "/" +