Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Default user not created with docker-compose #54

Closed
readdeo91 opened this issue Nov 21, 2022 · 3 comments
Closed

Default user not created with docker-compose #54

readdeo91 opened this issue Nov 21, 2022 · 3 comments

Comments

@readdeo91
Copy link

readdeo91 commented Nov 21, 2022

I tried to deploy Void with the docker-compose way. Followed the instructions, I tried it multiple times. I tried it with the postgres container included in the docker-composeand I tried it also with my own postgresql, and it created the database tables, but the users table was empty. I always removed the containers and recreated the database between tries. Is there anything to trigger the db population?

@AlphaNecron
Copy link
Owner

You can access the internal shell and exec either npx prisma db seed or yarn prisma db seed.

@readdeo91
Copy link
Author

Thank you. When I tried it for the first time, it didn't wotk because it coplained about the missing DATABASE_URL environment variable. This variable existed in the config.toml already, so I just added it to the environment section in the docker-compose.yaml. After this the command finished successfully and the user appeared in the databes.

@AlphaNecron
Copy link
Owner

Nice.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants