-
Notifications
You must be signed in to change notification settings - Fork 487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker should work out of the box? #214
Comments
I’ll try to see if I can replicate the docker errors. In the mean time, try launching without the docker compose (basically the first part of the readme). |
Okay, could you remove the redistogo_url from your config.env (since that's specified in the docker yml). Also, could you make sure that you have the environment variables for postgres specified in your environment (POSTGRES_USER, POSTGRES_PASSWORD, POSTGRES_DB)? If you're still running into issues, I'd recommend going with the non-docker compose setup. |
Hi thanks for getting back to me! I walked through the steps (I think you're missing a v infront of It seems to think something is already running on 6379 (even though I kill everything beforehand on that port via
docker-compose now gives me a similar error on 8080. Would you also mind adding to the readme setup how to create the postgres user/pw/db? PS saw your profile I'm a Lion grad too! BME |
Hi, so I think this issue is going to require a fair bit of fixing on my end and I'll get on that (unfortunately I don't expect a "quick fix" since this docker compose file doesn't quite work as expected...though it somehow worked before I merged it in). |
Awesome, let me know if I can help in any way, or if you can provide any clarity into how the postgres admin/pw/connection setup works I can probably help! First: for the multiple redis issue I discussed earlier it seems that it's possible to have redis running in the background (even after reboot and after a process kill... it just restarts) my solution to get the app running locally was to run: So far whats happened for the postgres
I tried no default config, and also setting
|
Okay, so I have a janky solution that isn't exactly the best since it requires you specifying the db user, and pass within the docker-compose file. Anyway, the issue is just that it seems that environment variables need to be specified for POSTGRES_USER, POSTGRES_PASSWORD, and POSTGRES_DB. I went ahead and hard coded those into the database URLs in the server and worker sections of the docker compose file like so:
Once you do that (and resolve the redis issue), I was able to get things running on a laptop that has docker freshly installed. Another thing you may run into: when you run Anyway, let me know if that resolves things. There are also some environment variables you'll need to change such as the MAIL_USERNAME and MAIL_PASSWORD and SECRET_KEY in the Docker files. (though I'd definitely welcome a pull request that allows you to read in a .env file instead). |
Running
docker-compose up
gives:and running
docker-compose exec server ./init_database.sh
gives many permission denied errors and:I'm surprised even before digging into whats going on that this doesn't run out of the box. Am I missing something here? I'll paste my config:
The text was updated successfully, but these errors were encountered: