An open API service indexing awesome lists of open source software.

https://github.com/macagua/example_docker_mysql_python

Examples for deploy a MySQL server with database using Docker and query his data with Python
https://github.com/macagua/example_docker_mysql_python

database deploy docker docker-compose mysql python python3 sql sql-query

Last synced: 3 months ago
JSON representation

Examples for deploy a MySQL server with database using Docker and query his data with Python

Awesome Lists containing this project

README

          

===========================
example_docker_mysql_python
===========================

Examples for deploy a MySQL server with database using Docker
and query his data with Python.

Install
=======

Pre requirements for deploy with Docker, executing the following command:

::

$ sudo apt update && sudo apt upgrade
$ sudo apt install build-essential libpq-dev python3-dev
$ pip install -U pip

Define some values for the deploy into the ``.env`` file, executing the
following command:

::

$ cd example_docker_mysql_python/
$ cp .env.example .env
$ nano .env

For deploy this software stack, you require the following software:

- `Docker Engine `_.

- `Docker Engine on Debian `_.

- `Docker Engine on Ubuntu `_.

- `Docker Compose `_.

Use it
======

For run this stack docker containers, executing the following command:

::

$ sudo docker compose up &

For stop this stack docker containers, executing the following command:

::

$ sudo docker compose stop