Skip to content

jimmycgz/docker-best-practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

My Collections for Docker and Docker-compose

WOrk with docker-compose

Features:

  • Auto restart the container if creashes

HEY, do you still need kubernetes if the docker containers can be automatically restared when crash ?? Should it be simply happy?

  • Get image name from Host ENV variables

  • Map ports

  • Pass Env variables

version: "3"
services:

  mydb-v3:
    image: "${Docker_Hub_URL}/mydb-v3:${DB_VER_TAG}"
    container_name: "stage-db-v3"
    environment:
      - HOSTHOME=$HOME

    ports:
      - "5432:5432"

    restart: always

DOCKER COMPOSE WITH TWO CONTAINERS - FLASK REST API SERVICE CONTAINER AND AN APACHE SERVER CONTAINER

Refer:https://www.bogotobogo.com/DevOps/Docker/Docker-Compose-FlaskREST-Service-Container-and-Apache-Container.php

or: https://github.com/Einsteinish/docker-compose-flask-rest-api-service-container-and-apache-container

docker-compose: Python Flask Redis with MySQL

Refer:https://stackoverflow.com/questions/45658144/connecting-to-mysql-from-flask-application-using-docker-compose

Same as docker-compose-network.md

Load Balancing for Docker containers

Work with Nginx

https://www.youtube.com/watch?v=HJ9bECmuwKo

Work with AWS ECS

Kubernetes AKS EKS GKS

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published