How to add default user and project to self-hosted docker? #1524
Unanswered
tzsombor95
asked this question in
Support
Replies: 1 comment 2 replies
-
you can do that or else better you can have a init.js file that just creates the user and a project refer the code below which is under Tests
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hello,
I would like to ask for help.
I want to create a new docker image using your images, in which I add a default project and user as well as api keys (secret and public) to the database. If I understand correctly, seed.ts implements this functionality in development environment and testing. But when I use your public docker, I can't run the seed.ts script. (missing dependencies, permission denied, etc.). I have already found related issues. #1007, #517
I started with this very basic Dockerfile:
I want to use the seed.ts (or similar) that I mentioned earlier here. #517
My problem is that I can't run seed.ts because the dependencies are missing and I don't have permission to install it without root within docker (because of the nextjs user?).
I use the following customized entrypoint.sh:
I'm not familiar with typescript and using prisma, so I apologize in advance if I'm thinking something wrong.
Thank you in advance for your help.
Beta Was this translation helpful? Give feedback.
All reactions