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_PORT = '8081'
15 BFF_PUBLIC_URL = 'https://grain.social'
16 BFF_JETSTREAM_URL = 'wss://jetstream1.us-west.bsky.network'
17 GOATCOUNTER_URL = 'https://grain.goatcounter.com/count'
18 USE_CDN = 'true'
19 PDS_HOST_URL = 'https://ansel.grainsocial.network'
20
21[[mounts]]
22 source = "litefs"
23 destination = "/var/lib/litefs"
24
25[[services]]
26 protocol = "tcp"
27 internal_port = 8080
28 processes = ["app"]
29
30 [[services.ports]]
31 port = 80
32 handlers = ["http"]
33 force_https = true
34
35 [[services.ports]]
36 port = 443
37 handlers = ["tls", "http"]
38
39 [[services.tcp_checks]]
40 interval = "30s"
41 timeout = "5s"
42 grace_period = "10s"
43 restart_limit = 3
44
45[[vm]]
46 memory = '1gb'
47 cpu_kind = 'shared'
48 cpus = 1