I run my docker image with this command to load database schema in localhost.
docker run --rm -it
–volume “$(pwd):/data”
–publish 127.0.0.1:9999:9999
–publish 127.0.0.1:9980:9980
–user $UID
objectboxio/sync:sync-server-2022-10-21
–model /data/objectbox-model.json
–unsecured-no-authentication
–admin-bind 0.0.0.0:9980
how to add docker --model command in Deploy config file?
Here is my fly.toml.
fly.toml app configuration file generated for objectbox on 2023-04-22T14:53:46+06:30
See App configuration (fly.toml) · Fly Docs for information about how to use this file.
app = “objectbox”
kill_signal = “SIGINT”
kill_timeout = 5
primary_region = “sin”
processes =
[experimental]
auto_rollback = true
[[services]]
http_checks =
internal_port = 8080
processes = [“app”]
protocol = “tcp”
script_checks =
[services.concurrency]
hard_limit = 25
soft_limit = 20
type = “connections”
[[services.ports]]
force_https = true
handlers = [“http”]
port = 80
[[services.ports]]
handlers = [“tls”, “http”]
port = 443
[[services.tcp_checks]]
grace_period = “1s”
interval = “15s”
restart_limit = 0
timeout = “2s”
[build]
image = “objectboxio/sync:sync-server-2022-10-21”