grain.social is a photo sharing platform built on atproto.
1# fly.toml app configuration file generated for atphoto on 2025-04-18T17:11:40-07:00
2#
3# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
4#
5
6app = 'atphoto'
7primary_region = 'sea'
8
9[build]
10 dockerfile = './Dockerfile'
11
12[env]
13 BFF_DATABASE_URL = '/litefs/sqlite.db'
14 # BFF_QUEUE_DATABASE_URL = '/litefs/my.db'
15 BFF_LEXICON_DIR = './__generated__'
16 BFF_PORT = '8081'
17 BFF_PUBLIC_URL = 'https://grain.social'
18 GOATCOUNTER_URL = 'https://grain.goatcounter.com/count'
19
20[[mounts]]
21 source = "litefs"
22 destination = "/var/lib/litefs"
23
24[[services]]
25 protocol = "tcp"
26 internal_port = 8080
27 processes = ["app"]
28
29 [[services.ports]]
30 port = 80
31 handlers = ["http"]
32 force_https = true
33
34 [[services.ports]]
35 port = 443
36 handlers = ["tls", "http"]
37
38 [[services.tcp_checks]]
39 interval = "15s"
40 timeout = "2s"
41 grace_period = "1s"
42 restart_limit = 0
43
44[[vm]]
45 memory = '1gb'
46 cpu_kind = 'shared'
47 cpus = 1