Can you configure FA in Docker to automatically set up apps, OAuth, etc
-
I Have set up FA locally with docker. However, when you run compose you have to set up a user then configure apps and OAuth and so on. I was wondering if anyone knew if it were possible or how to not have to do this manually? Example, run compose and apps are already configured so you can test?
-
Yup. You're looking for kickstart, a way to configure FusionAuth on load with users, api keys, and more. Anything you can do via the API you can do in a kickstart file.
Here's the docs: https://fusionauth.io/docs/v1/tech/installation-guide/kickstart
Let us know if you have questions.
-
Thank you for the reply. Will kickstart bypass the maintenance mode of creating user and allow you to have a dashboard with your apps when you run docker compose and go to http://localhost:9011/? It doesn't appear to be the case and I just wanted to clarify as I'd like others to be able to pull from git and be up and running immediately. Thanks again.
-
Ah, I'm sorry, I misunderstood what you were aiming for. Kickstart lets you set up fusionauth users, applications, roles--anything you can set up in the admin ui.
For starting a fusionauth instance with an existing database server (it doesn't have to have the FusionAuth schema set up, though) and skipping maintenance mode, you want silent configuration: https://fusionauth.io/docs/v1/tech/reference/configuration#silent-configuration
So you probably want a combination of both. Silent configuration to skip maintenance mode, and then Kickstart to set up some applications.
Please let me know if that helps.
-
Awesome thank you so much for the help!