From 97b2d86cbfcfffb3cc48b1ac6cc289937500feff Mon Sep 17 00:00:00 2001 From: Tine Date: Fri, 16 Feb 2024 15:59:00 +0100 Subject: [PATCH] chore: try out volumes --- fly.toml | 10 +++++++++- .../pages/settings_healthchecks_describe.tmpl | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/fly.toml b/fly.toml index 75e23fe..9987e26 100644 --- a/fly.toml +++ b/fly.toml @@ -10,11 +10,13 @@ primary_region = 'waw' [env] PORT = '8080' ROOT_URL = 'https://zdravko.mnts.dev' - # Other are defined in secrets + DATABASE_PATH = '/data/zdravko.db' + OAUTH2_ENDPOINT_TOKEN_URL = 'https://github.com/login/oauth/access_token' OAUTH2_ENDPOINT_AUTH_URL = 'https://github.com/login/oauth/authorize' OAUTH2_ENDPOINT_USER_INFO_URL = 'https://api.github.com/user' + TEMPORAL_DATABASE_PATH = '/data/temporal.db' TEMPORAL_UI_HOST = 'temporal.process.zdravko.internal:8223' TEMPORAL_SERVER_HOST = 'temporal.process.zdravko.internal:7233' @@ -23,6 +25,12 @@ primary_region = 'waw' worker = "worker" temporal = "temporal" +[[mounts]] + source = "zdravko_data" + destination = "/data" + processes = ["server", "temporal"] + initial_size = "3GB" + [http_service] processes = ["server"] internal_port = 8080 diff --git a/web/templates/pages/settings_healthchecks_describe.tmpl b/web/templates/pages/settings_healthchecks_describe.tmpl index 2e75c11..68a7fdd 100644 --- a/web/templates/pages/settings_healthchecks_describe.tmpl +++ b/web/templates/pages/settings_healthchecks_describe.tmpl @@ -5,7 +5,7 @@ {{ .Healthcheck.ID }} {{ .Healthcheck.Slug }} - {{ .Healthcheck.URL }} + {{ .Healthcheck.Url }} {{ .Healthcheck.Schedule }} {{end}}