diff --git a/Backend/compose.yaml b/Backend/compose.yaml new file mode 100644 index 0000000..f740fd3 --- /dev/null +++ b/Backend/compose.yaml @@ -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: diff --git a/Backend/fly.toml b/Backend/fly.toml new file mode 100644 index 0000000..d1e6029 --- /dev/null +++ b/Backend/fly.toml @@ -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 diff --git a/Backend/pb_bootstrap/pb_schema.json b/Backend/pb_bootstrap/pb_schema.json index 9af3625..5fa518a 100644 --- a/Backend/pb_bootstrap/pb_schema.json +++ b/Backend/pb_bootstrap/pb_schema.json @@ -149,7 +149,9 @@ "required": false, "presentable": false, "unique": false, - "options": {} + "options": { + "maxSize":5242880 + } } ], "indexes": [ @@ -242,7 +244,9 @@ "required": false, "presentable": false, "unique": false, - "options": {} + "options": { + "maxSize":5242880 + } }, { "system": false, @@ -529,7 +533,9 @@ "required": false, "presentable": false, "unique": false, - "options": {} + "options": { + "maxSize":5242880 + } }, { "system": false,