Kayıtlar

docker compose etiketine sahip yayınlar gösteriliyor

Docker - Review

Docker Open platform that make deployment easier, faster & more reliable using standarized container technology Docker Image: Abstraction of lightweight, stand-alone, executable package of a pice of software that includes everyting needed to run. To view all of your image use: # docker images Docker Container: Runtime environment generated based of docker images, each image can be used to create multiple exact replica of docker contrainers. Made you easier to deploy similiar environment in a matter of seconds . To view all of your your container use: # docker ps Docker Compose: Docker feature that enable you to create "template" of multiple difference service deployment in a single execution

Demo: Deploying Simple Micsoservices With Docker Compose

- Create the project directory #mkdir simple-wordpress -Install docker compose #yum -y install docker-compose -Create the following compose file as "docker-compose.yml" version: '2'    ---> compose file format version services:    ---> defining one or multiple services definition    db:       image: mysql:5.7   ---> image to be run by the service        volumes:         - db_data: var/lib/mysql  --> volume to be used by services        restart: always       environment:            MYSQL_ROOT_PASSWORD: somewordpress            MYSQL_DATABASE: wordpress            MYSQL_USER:    wordpress            MYSQL_PASSWORD: wordpress    web:        --->service name    ...

Docker Compose

Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a YAML file to configure your application's services. Then, with a single command, you create and start all the services from your configuration. Docker Compose Use Case When you're developing software, the ability to run an application in an isolated environment and interact with it is crucial. The Compose file provides a way to document and configure all of the application's service dependencies (databases,queues, caches, web service APIs,etc) Docker Compose Quickstart There are 3 step process: 1- Define your app's environment with a Dockerfile so it can be reproduced anywhere. 2- Define the services that make up your app in docker-compose.yml so they can be run together in an isolated environment. 3- Run docker-compose up and Compose will start and run your entire app. Docker compose file example version: '3'   ---> compose file format ve...