Skip to content

Docker-compose starter configuration to set up two docker containers - one with a python script to insert data into a second running MySQL

Notifications You must be signed in to change notification settings

johnsliao/docker-compose-mysql-python3-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker MySQL Python3 Starter

A beginner docker-compose configuration for building two docker containers.

One container has a simple python script (insert.py) that inserts data into a second container with MySQL database instance running.

Pre-requisites

  • Docker
  • Docker compose

Setup

  1. Run docker-compose up from root project directory

  2. Data should be inserted into the docker MySQL database (port 3306):

    alt text

  3. Clean up by running:

> docker-compose down -v

Removing docker-compose-mysql-python3-starter_app_1 ... done
Removing docker-compose-mysql-python3-starter_db_1  ... done
Removing network docker-compose-mysql-python3-starter_default
Removing volume docker-compose-mysql-python3-starter_mysql_data

About

Docker-compose starter configuration to set up two docker containers - one with a python script to insert data into a second running MySQL

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published