Setting default user in docker-compose

I want a user to be available when starting hydra. I’m using a hydra migrate and hydra service in docker-compose, in the hydra service I’m setting the env variable FORCE_ROOT_CLIENT_CREDENTIALS=admin:secret, but this has no effect. Is it possible to have a default user on a newly built hydra container? This is for development and not production insecurity doesn’t matter.

You probably mean OAuth2 Client and no that is currently not possible. You can simply start a second docker container with the CLI parameters set for your client and run that once after boot.

Alternatively create a custom Docker image with an entrypoint that allows you to do that.