Autostop not working for supabase deployment using docker:dind as base

I have deployed supabase stack using docker dind based image to run docker-compose.

I have put fly.io instance to autostop: "suspend" mode. Here’s my fly.toml file

primary_region = 'sin'

[build]
  dockerfile = "Dockerfile.fly"

[[vm]]
  memory = '1gb'
  cpu_kind = 'shared'
  cpus = 1

[mounts]
  source = "supa_img"
  destination = "/var/lib/docker"
  initial_size = 5

[[services]]
  internal_port = 5432
  protocol = "tcp"

  [[services.ports]]
    port = 5432
    handlers = ["pg_tls"]

[[services]]
  internal_port = 8000
  protocol = "tcp"
  auto_stop_machines = "suspend"
  auto_start_machines = true
  min_machines_running = 0

  [[services.ports]]
  handlers = ["tls", "http"]
  port = "443"

Deployment works fine. However, I was anticipating my machine to suspend based on my autostop settings. However, I dont see my machine getting suspended after even 30 min of inactivity. I don’t see any request getting logged.

Can someone help me with this issue? Let me know if any additional information is required. I am new to fly.io setup. So feel free to point out any mistake that I may be doing with my setup.

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