Giter Club home page Giter Club logo

python-docker-compose-database's Introduction

This is my learning of setting up Docker with MariaDB running within and notes for reference docs.

Links to instructions

Japanese translation: 使い方

Reference documents

How to set up Docker with MariaDB

How to set up Docker with MariaDB

expose vs ports in Docker

expose

ports

expose: Expose ports w/out publishing them to the host machine. i.e. host machine can't access it. ports: Defined as HOST:CONTAINER, expose ports both host machine and container.

Docker compose vs Dockerfile

Docker compose is a tool for defining and running multiple docker container application. Dockerfile contains the commands that user can run on the command line to assemble an image. Dockerfile reference

Writing application

Writing application using Docker Containerized docker dev 2

Dump the database running in the Docker container.

sudo docker exec <container name> sh -c 'mysqldump <db name> <table name> -u <user> -p"<password>" ' > ./all-database.sql

Redis

Redis site

Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache, and message broker

SQLAlchemy

SQLAlchemy

使い方

インストールするもの

Docker

インフラとアプリを同時に管理するプラットフォーム。同時に管理することによって開発環境そのままをプロダクションに移行できるので、インフラ環境の違いの すり合わせをなくすことができ、早くリリースできるようになる。

Dockerをダウンロードしてインストールする方法

Docker Compose

Docker Compose とは、複数のコンテナを定義し実行する Docker アプリケーションのためのツール Docker Compose のインストール

python-docker-compose-database's People

Contributors

miekof avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.