Skip to content
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

storing events in external database #95

Closed
moix opened this issue Mar 13, 2019 · 4 comments
Closed

storing events in external database #95

moix opened this issue Mar 13, 2019 · 4 comments

Comments

@moix
Copy link

moix commented Mar 13, 2019

Hi, I'd like to use different database for storing the events instead the default sqlite but cannot find in the docker run parameters if there's an easy way to modify it.
Any idea how to change to mysql for example?

Thanks in advance!

@deniszh
Copy link
Member

deniszh commented Mar 13, 2019

Unfortunately, there's no easy way to fix that using the environment variable. You need to edit or mount local_settings.py config with a different database connection and migrate data from SQLite. You can check for example this gist - https://gist.github.com/toni-moreno/9779979

@moix
Copy link
Author

moix commented Mar 13, 2019

alright thanks, giving a try now to these steps. What about image dependencies? should I update it with any missing package for mysql?

@deniszh
Copy link
Member

deniszh commented Mar 14, 2019

Riiight... Libraries and python packages also needed.
Maybe it should be included in base image too.
E.g. for
Mysql - https://hub.docker.com/r/mio101/py3-mysqlclient-alpine/
Postgres - psycopg/psycopg2#684

@deniszh
Copy link
Member

deniszh commented May 13, 2019

@moix: Should be fixed in v1.1.5-11, please test.

@deniszh deniszh closed this as completed May 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants