Stocksera icon indicating copy to clipboard operation
Stocksera copied to clipboard

Using Mysql on Docker with new changes

Open CodeInFilth opened this issue 2 years ago • 2 comments

I want to transfer your old sqlite version to to the new mysql version and give the new code a try but cant figure out how to get docker to install mysql in the dockerfile or what steps to take.

CodeInFilth avatar Jun 16 '22 20:06 CodeInFilth

Bassically if it is possible to have a small video on how to run a docker mysql container in the background or how to setup the server from a to Z and i would deffintaly think people would consider donating more. !!! please continue your work!! :)

I am sorry I have needed so much help aha

CodeInFilth avatar Jun 23 '22 10:06 CodeInFilth

I might have unintentionally neglected the dockerisation part previously when i migrate the database to mysql. I have pushed a new commit with the new docker commands.

# Clone the project
git clone https://github.com/guanquann/Stocksera.git

# Dockerise
docker-compose build

docker-compose up

docker-compose run --rm web python3 manage.py migrate

docker compose run --rm web python scheduled_tasks/create_database.py

docker compose run --rm web python tasks_to_run.py

guanquann avatar Jun 25 '22 07:06 guanquann