Docker compose setup #77
-
Is there anyway to auto-generate a user id without having to run
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi, does this work for you? |
Beta Was this translation helpful? Give feedback.
-
To skip the setup command, you will need to manually do what the setup command does. But that's hard to do, because it involves creating an account record, which has encrypted values that can't be easily set via raw SQL. So the best way is to run the setup command out-of-band to initialize the database and the account. You can run the setup command without interaction by supplying the following environment variables during setup:
As discussed in keygen-sh/keygen-api#727, I'd be open to a PR that adds account creation to the seed script. |
Beta Was this translation helpful? Give feedback.
-
We have an official Compose file now: https://github.com/keygen-sh/keygen-api/blob/master/docker-compose.yaml docker-compose --profile setup run --rm setup
docker-compose up lmk your thoughts and feedback. |
Beta Was this translation helpful? Give feedback.
We have an official Compose file now: https://github.com/keygen-sh/keygen-api/blob/master/docker-compose.yaml
lmk your thoughts and feedback.