Is it possible to implement Custom User Storage SPI and/or User-Federation with Docker?

I have found a solution for Custom User Storage SPI in this solution which implement spring-boot with embedded Keycloak. So I want to know is it possible with a stand-alone Keycloak(Docker) and then add custom provider via my spring-boot service later.