Disabling the need for email to login

In the 5.118.1 update, Ghost added the necessity to have email configured for devices signing in for the first time. If you did not have email configured and you attempted to sign in, you would get an error.

I want to bypass this. I know I can edit the config.production.json file to add the security section at the bottom:

{
  "url": "http://localhost:2368",
  "server": {
    "port": 2368,
    "host": "::"
  },
  "mail": {
    "transport": "Direct"
  },
  "logging": {
    "transports": [
      "file",
      "stdout"
    ]
  },
  "process": "systemd",
  "paths": {
    "contentPath": "/var/lib/ghost/content"
  },
  "security": {
    "staffDeviceVerification": false
  }

}

Is there a way to do this by editing the docker compose file? I have added these lines to the environment but that didn’t help:

      security: false
      privacy: true

You combine the paths with __. So security__staffDeviceVerification is the thing to set.

Closing thread due to duplication. @Evan_Gargiulo , please don’t post the same question more than once. Thanks!