-
-
Notifications
You must be signed in to change notification settings - Fork 118
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
Key error database_uri in config file #55
Comments
The API container doesn't read from the same configuration file, and just checks the environment variable given in the docker-compose.yml file. I didn't have any specific intentions in mind since I didn't exactly expect anyone to mess with the compose file, so it's not exactly intended behaviour this way :) I could make it read from the config file too, though. Or just split it off into a separate container entirely. |
I see. I have the bot use database I have set up elsewhere, and as I haven't gotten round to setting up an creating apremade docker image to use on the main system, I've just been messing with the dockerfile for now to point it the right server and use the right network. Why don't you merge the api into the bot proper and have it use a config value to have it enabled/disabled? |
I'd like to be able to run the API in a separate container (and eventually on a different server entirely) for scalability reasons. |
At the moment it can be run on another server, doesn't it read the bots data from the database? Maybe this should be split out into it own repo then. And from there docker image creation can be automated. Been thinking about doing that for a while, but the repo here doesn't have tags or version info and some of the changes like this config file does break things. |
When using the database_uri in config, pk will throw a key error.
Using the same uri in
docker-compose.yml
functions correctly.The text was updated successfully, but these errors were encountered: