How to setup a service/process app that never shuts down

I’ve got a docker image running in fly.io which does database backups of external DB’s - GitHub - tiredofit/docker-db-backup: Backup multiple database types on a scheduled basis with many customizable options

This app does not expose HTTP ports.
I want this app to only ever have 1 machine running and always have 1 machine running (I don’t want to sleep)

I’ve got this working with a `[[services]`` tag, but that doesn’t feel right to me

[[services]]
  auto_stop_machines = true
  auto_start_machines = true
  min_machines_running = 1
  max_machines_running = 1

What I don’t like about this is that I get the following console warning when I deploy

WARNING: Service must expose at least one port. Add a [[services.ports]] section to fly.toml; Check docs at https://fly.io/docs/reference/configuration/#services-ports 
 Validation for _services without ports_ will hard fail after February 15, 2024.✓ Configuration is valid

Any suggestions on the correct configuration to put in my fly.toml?

Thanks

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.