Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/martinthoma/flask_mysql_dockerized
A minimal example of a dockerized Flask App which uses MySQL.
https://github.com/martinthoma/flask_mysql_dockerized
docker docker-compose flask mysql sqlalchemy
Last synced: 17 days ago
JSON representation
A minimal example of a dockerized Flask App which uses MySQL.
- Host: GitHub
- URL: https://github.com/martinthoma/flask_mysql_dockerized
- Owner: MartinThoma
- Created: 2017-07-21T15:51:55.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-07-24T20:43:23.000Z (over 7 years ago)
- Last Synced: 2024-10-20T14:33:13.404Z (18 days ago)
- Topics: docker, docker-compose, flask, mysql, sqlalchemy
- Language: HTML
- Size: 7.81 KB
- Stars: 3
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# flask_mysql_dockerized
A minimal example of a dockerized Flask App which uses MySQL.# Compose web service
sudo docker-compose up --build
The `--build` makes sure that the image is re-built when you change something
in the compose script.# TODO
* Initialize Database
* Fix error:```
web_1 | File "/usr/local/lib/python2.7/dist-packages/mysql/connector/connection.py", line 395, in _handle_result
web_1 | raise errors.get_exception(packet)
web_1 | sqlalchemy.exc.ProgrammingError: (mysql.connector.errors.ProgrammingError) 1146 (42S02): Table 'performance_schema.session_variables' doesn't exist [SQL: "SHOW VARIABLES LIKE 'sql_mode'"]
db_1 | 2017-07-21T22:22:17.002582Z 3 [Note] Aborted connection 3 to db: 'flask_db' user: 'root' host: '172.18.0.3' (Got an error reading communication packets)
```