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 DARKROOM_HOST_URL = 'https://grain.social'
21
22[[mounts]]
23 source = "litefs"
24 destination = "/var/lib/litefs"
25
26[[services]]
27 protocol = "tcp"
28 internal_port = 8080
29 processes = ["app"]
30
31 [[services.ports]]
32 port = 80
33 handlers = ["http"]
34 force_https = true
35
36 [[services.ports]]
37 port = 443
38 handlers = ["tls", "http"]
39
40 [[services.tcp_checks]]
41 interval = "30s"
42 timeout = "5s"
43 grace_period = "10s"
44 restart_limit = 3
45
46[[vm]]
47 memory = '1gb'
48 cpu_kind = 'shared'
49 cpus = 1