class Rails::Generators::DevcontainerGenerator

def container_env

def container_env
  return @container_env if @container_env
  @container_env = {}
  @container_env["CAPYBARA_SERVER_PORT"] = "45678" if options[:system_test]
  @container_env["SELENIUM_HOST"] = "selenium" if options[:system_test]
  @container_env["REDIS_URL"] = "redis://redis:6379/1" if options[:redis]
  @container_env["KAMAL_REGISTRY_PASSWORD"] = "$KAMAL_REGISTRY_PASSWORD" if options[:kamal]
  @container_env["DB_HOST"] = database.name if database.service
  @container_env
end