-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfly.toml
97 lines (85 loc) · 2.07 KB
/
fly.toml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# https://fly.io/docs/reference/configuration/
# https://fly.io/docs/reference/monorepo/
# Run `fly launch` to create an app
# > fly launch --no-deploy
# Create a volume named "pomelodata" within our app "pomelo-server"
# > fly volumes create pomelodata --size 1 # gb
# Set secrets:
# > fly secrets set IDENTITY_DATABASE_CONNECTION=xxx INFRASTRUCTURE_DATABASE_CONNECTION=xxx REDIS_URL=xxx
# Deploy the App from dockerfile
# > fly deploy
app = "pomelo-server"
primary_region = "nrt"
kill_signal = "SIGINT"
kill_timeout = "5s"
[build]
dockerfile = "Dockerfile"
build-target = "deploy"
[build.args]
BUILD_IGNORE = "true"
# BUILD_OPTION = "servers"
# RUNTIME_ENV = "production"
# RUNTIME_APPS = "identity-server"
[env]
SWAGGER_DEBUG = "true"
GRAPHQL_DEBUG = "true"
ENV_FILE = ".env.fly"
[mounts]
source = "pomelodata"
destination = "/data"
# auto_extend_size_threshold = 0
# [http_service]
# internal_port = 3001
# force_https = true
# auto_stop_machines = true
# auto_start_machines = true
# min_machines_running = 0
# processes = ["app"]
[[services]]
internal_port = 3001
protocol = "tcp"
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 0
processes = ["app"]
[[services.ports]]
port = 3001
handlers = ["http"]
force_https = true
[[services]]
internal_port = 3002
protocol = "tcp"
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 0
processes = ["app"]
[[services.ports]]
port = 3002
handlers = ["http"]
force_https = true
[[services]]
internal_port = 3003
protocol = "tcp"
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 0
processes = ["app"]
[[services.ports]]
port = 3003
handlers = ["http"]
force_https = true
[[services]]
internal_port = 3011
protocol = "tcp"
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 0
processes = ["app"]
[[services.ports]]
port = 3011
handlers = ["http"]
force_https = true
[[vm]]
cpu_kind = "shared"
cpus = 1
memory_mb = 256