forked from mrwyndham/fastpocket
feature - updated pb_schema, compose file and fly.toml for easy deployment
This commit is contained in:
parent
15eaf62995
commit
efa8ef40d3
19
Backend/compose.yaml
Normal file
19
Backend/compose.yaml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
services:
|
||||||
|
frontend:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
args:
|
||||||
|
STRIPE_SECRET_KEY: sk_test_51Oc1xLGaxPbSqiRDaGtJNmtk3aMQHFHVVSqIaC7TCUK74HQxzkb3jbjDqq5NQyoDEyKSeDitPB2bHX4vXqS8s0z100rXePxwfB
|
||||||
|
HOST: 0.0.0.0
|
||||||
|
STRIPE_RETURN_URL: https://sign365.com.au/account
|
||||||
|
PORT: 8090
|
||||||
|
DEVELOPMENT: ""
|
||||||
|
platform: linux/amd64
|
||||||
|
ports:
|
||||||
|
- "8090:8090"
|
||||||
|
image: myimage:latest
|
||||||
|
volumes:
|
||||||
|
- pocketbase:/app/bin/pb_data
|
||||||
|
volumes:
|
||||||
|
pocketbase:
|
33
Backend/fly.toml
Normal file
33
Backend/fly.toml
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
# fly.toml app configuration file generated for fastpocket on 2024-02-19T15:49:52+08:00
|
||||||
|
#
|
||||||
|
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
|
||||||
|
#
|
||||||
|
|
||||||
|
app = 'fastpocket'
|
||||||
|
primary_region = 'syd'
|
||||||
|
|
||||||
|
[build]
|
||||||
|
|
||||||
|
[env]
|
||||||
|
DEVELOPMENT = ''
|
||||||
|
HOST = 'fastpocket.fly.dev'
|
||||||
|
PORT = '8090'
|
||||||
|
STRIPE_RETURN_URL = 'https://sign365.com.au/account'
|
||||||
|
STRIPE_SECRET_KEY = 'sk_test_51Oc1xLGaxPbSqiRDaGtJNmtk3aMQHFHVVSqIaC7TCUK74HQxzkb3jbjDqq5NQyoDEyKSeDitPB2bHX4vXqS8s0z100rXePxwfB'
|
||||||
|
|
||||||
|
[[mounts]]
|
||||||
|
source = 'data_fastpocket'
|
||||||
|
destination = '/app/bin/pb_data'
|
||||||
|
|
||||||
|
[http_service]
|
||||||
|
internal_port = 8090
|
||||||
|
force_https = true
|
||||||
|
auto_stop_machines = true
|
||||||
|
auto_start_machines = true
|
||||||
|
min_machines_running = 0
|
||||||
|
processes = ['app']
|
||||||
|
|
||||||
|
[[vm]]
|
||||||
|
memory = '1gb'
|
||||||
|
cpu_kind = 'shared'
|
||||||
|
cpus = 1
|
@ -149,7 +149,9 @@
|
|||||||
"required": false,
|
"required": false,
|
||||||
"presentable": false,
|
"presentable": false,
|
||||||
"unique": false,
|
"unique": false,
|
||||||
"options": {}
|
"options": {
|
||||||
|
"maxSize":5242880
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"indexes": [
|
"indexes": [
|
||||||
@ -242,7 +244,9 @@
|
|||||||
"required": false,
|
"required": false,
|
||||||
"presentable": false,
|
"presentable": false,
|
||||||
"unique": false,
|
"unique": false,
|
||||||
"options": {}
|
"options": {
|
||||||
|
"maxSize":5242880
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"system": false,
|
"system": false,
|
||||||
@ -529,7 +533,9 @@
|
|||||||
"required": false,
|
"required": false,
|
||||||
"presentable": false,
|
"presentable": false,
|
||||||
"unique": false,
|
"unique": false,
|
||||||
"options": {}
|
"options": {
|
||||||
|
"maxSize":5242880
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"system": false,
|
"system": false,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user