grain.social is a photo sharing platform built on atproto.
grain.social
atproto
photography
appview
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
19[[mounts]]
20 source = "litefs"
21 destination = "/var/lib/litefs"
22
23[[services]]
24 protocol = "tcp"
25 internal_port = 8080
26 processes = ["app"]
27
28 [[services.ports]]
29 port = 80
30 handlers = ["http"]
31 force_https = true
32
33 [[services.ports]]
34 port = 443
35 handlers = ["tls", "http"]
36
37 [[services.tcp_checks]]
38 interval = "15s"
39 timeout = "2s"
40 grace_period = "1s"
41 restart_limit = 0
42
43[[vm]]
44 memory = '1gb'
45 cpu_kind = 'shared'
46 cpus = 1