How to run app with Docker
-
Build and start the containers:
docker compose up --build
If your Docker installation uses the legacy Compose binary, run
docker-compose up --buildinstead. -
The MySQL dump from
database/dump-pollvot-202212251211.sqlis imported automatically the first time thedb_datavolume is created. -
Administrator user credentials are email: administrator@pollvot.app and password: 12345678
Useful commands:
docker compose down
docker compose down -v
docker compose exec app php artisan cache:clear
docker compose exec db mysql -upollvot -ppollvot votemsUse docker compose down -v only when you want to delete the database volume and re-import the SQL dump on the next start.
The Python prediction scripts are not installed in the container image.
How to run app without Docker
- Import database dump located at /database directory.
- Create .env file with MySQL credentials
- Install Python and Python packages: sklearn, keras, tensorflow, pandas
- Make sure Python is globally accessible by setting environment variable
- Run
composer install - Run
php artisan serve - Administrator user credentials are email: administrator@pollvot.app and password: 12345678






