|
|
6 jaren geleden | |
|---|---|---|
| mysql | 6 jaren geleden | |
| src | 6 jaren geleden | |
| .gitignore | 6 jaren geleden | |
| README.md | 6 jaren geleden | |
| app_structure.png | 6 jaren geleden | |
| docker-compose.yml | 6 jaren geleden | |
Python webpy application running on uswgi server with nginx using docker connected to another docker-runned mysql database.
Web Server image: https://github.com/tiangolo/uwsgi-nginx-docker webpy framework: http://webpy.org/
docker https://www.docker.com/
$ docker-compose up --build
If you need a fresh rebuild in case of startup issues use this command (WARNING this will remove all your docker images) $ docker system prune -a $ docker-compose up --build
Prerequisites: mysql python3 src/app/requirements.txt
Launch mysql at default port (3306) $ systemctl start mysqld Log in to database $ mysql -u -p Insert mysql queries “CREATE database db;” “USE db;” Then populate databse by posting mysql/sql/init.sql into mysql Edit src/app/models/database.py to point at local server Run app $ python3 src/app/main.py