forked from libredb/libredb-studio
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfly.toml
More file actions
43 lines (36 loc) · 984 Bytes
/
Copy pathfly.toml
File metadata and controls
43 lines (36 loc) · 984 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Run LibreDB Studio on Fly.io from the prebuilt image.
# Setup steps: docs/FLY.md
#
# Credentials are NOT set here on purpose - put them in Fly secrets
# (see docs/FLY.md), never in a committed file.
app = 'libredb-studio'
primary_region = 'ams'
[build]
image = 'ghcr.io/libredb/libredb-studio:0.9.59'
[env]
NEXT_PUBLIC_AUTH_PROVIDER = 'local'
NODE_ENV = 'production'
PORT = '3000'
STORAGE_PROVIDER = 'sqlite'
STORAGE_SQLITE_PATH = '/app/data/libredb-storage.db'
[mounts]
source = 'libredb_data'
destination = '/app/data'
[http_service]
internal_port = 3000
force_https = true
auto_stop_machines = 'stop'
auto_start_machines = true
# SQLite on a single volume: keep this at one machine, don't scale out.
min_machines_running = 0
processes = ['app']
[[http_service.checks]]
interval = '30s'
timeout = '5s'
grace_period = '20s'
method = 'GET'
path = '/api/db/health'
[[vm]]
memory = '512mb'
cpu_kind = 'shared'
cpus = 1