-
Notifications
You must be signed in to change notification settings - Fork 116
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
django.core.exceptions.ImproperlyConfigured: Set the SECRET_KEY environment variable #77
Comments
I said it would be something dumb - in an attempt to get this working in Portainer I had removed the env_file reference in the compose file! Can I rename this issue to "please make docker demo simplier?" :) |
I am glad you got it sorted! Thanks for writing this all out, I appreciate it and sorry about the confusion. I am not familiar with portainer, so I can't really comment on that.
I added that for people that install this on a fresh server. Caddy also automatically adds the SSL certificates needed for
The only reason why I set up the
Haha! Since the human population seems to be increasing every day... better be safe than sorry, I guess? lol. You are right, celery is probably indeed a bit overkill here. It needs scheduled tasks to basically do two things: update new hires with tasks/messages for that day and connect new Slack users to accounts (the latter will be migrated to a webhook soon). Hmm.. thinking about this, I can probably set up Django Q with the Postgres database as the message broker. That would get rid of both Celery and Redis. I will keep this issue open until I (or someone else) fixed that. This would also resolve the
Great! Thanks.
Agreed. That's really easy to add and will fix that soon! Thanks!
Haha, sure! |
Haha thanks, all of the above is appreciated!
I am still struggling with this, I get an error when running the final command:
Is organizatio is missing an 'n' somewhere? I tried logging in anyway but get bounced back to the login screen immeditely, with the errors (from chrome dev console):
|
I think it might be a typo here:
|
I fixed this in the running container and ran the import command and it loaded the data okay now (btw docker-compose run spawns a new container and leaves it running, I'm not sure this is necessary - I'm still getting bounced back to the login screen though: VM331:1 GET http://docker.home:9912/api/org/detail 403 (Forbidden) |
Possibly the allowed hosts var (again IMO more uncessary complexity!)? I changed it to * in the env file but now I'm wondering if I need to rebuild the stack from scratch (and go through all of the above) as it possibly is not re-reading the env file between start/stops. |
Rebuilt the stack with allowed_hosts *. Still getting 403. I'm bowing out for now - my 3 hours journey is a good example of why a KISS 'just works' docker-compose file would be great :) Thanks anyway, will try this again at a later date. |
Yup, sorry, this is a known bug, the current PR that's open fixes that, I haven't had time yet to fully merge that yet. Will get that done asap.
Oh, I had no clue. Will get that replaced in the docs.
ChiefOnboarding doesn't really support HTTP.
Yeah, I see what you mean. The current docker-compose works just fine on a clean vps linked directly to a domain (except for the fixture thing), but it won't work well when it needs run along with other docker containers. I should have some time tomorrow to take a better look at this and make things simpler to run anywhere. I am sorry it didn't work out for you right now. Thanks for giving it a shot though! |
Alright, what I have done to make this all easier (this has been pushed in the latest release):
Hopefully, this makes things much easier. And it should be possible to run this in Portainer as well (though, I have not tested that). Feel free to give it another go... or don't, that's cool too. :) Thanks again for all the feedback! I really appreciate it. |
Hey thanks for all this - super appreciated :) However now the web container literally does nothing...no logs, nothing! :/ Both caddy and the db do print logs, but web..ziltch.
|
Thanks for getting back to me. That's very weird, somehow I can't reproduce it. I just created a fresh VPS (with docker and docker-compose preinstalled) and used the script above to run this app. It took some time to see some results in the terminal (3-5 minutes maybe). Then I got some Caddy errors, but that was obvious because I hadn't set up the folders correctly for the config that you have. Then I ran just the web one (with
Indicating that it is running nicely. So I am really not sure why it didn't start correctly for you. Perhaps try to start just that |
Hi there :) I tried again, this time I got as far as "Caddy works!"
Change the Caddy file below to what? Because insecure or not, the web service still exports port 8000. So Caddy is still expecting this. Thank you! |
Okay, cool. In the
For insecure access (http), you will have to prefix it with
Obviously, change the domain name to something that works for you. I hope that works for you. |
Hi,
I am getting:
and the same in the celery container. I'm sure its something dumb I'm doing but I cannot figure it out!
I know my .env file is being read by the compose service as I am setting COMPOSE_PROJECT_NAME=chiefonboarding_footest (and the resulting stack is called 'chiefonboarding_footest').
Also please kindly consider creating a demo docker example that just works - it allows people to try your cool looking app much easier! What I mean by this is applying some KISS:
Basically look at any linuxserver docker stack example on how to make an app accessible for the masses.
Thanks!
The text was updated successfully, but these errors were encountered: