
mastodon-init-dirs should have the same environment as the other services, as it also calls rake. Especially RAILS_ENV was missing.
mastodon-init-dirs should have the same environment as the other services, as it also calls rake. Especially RAILS_ENV was missing.