8000 GitHub - culiops/docker-101: A place to store all resources, guide and code for Docker-101 course
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

A place to store all resources, guide and code for Docker-101 course

License

Notifications You must be signed in to change notification settings

culiops/docker-101

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Docker 101

A basic introduction to Docker for DevOps, showcasing how to run WordPress with MySQL using both Docker commands and Docker Compose.

Repository Structure

docker-101/ 
├── README.md 
└── basic-docker-for-devops/ 
    ├── docker-compose.yml 
    └── run-containers.sh

What's Included

  • docker-compose.yml: Configuration file for running WordPress and MySQL using Docker Compose
  • run-containers.sh: Bash script demonstrating how to run the same containers using Docker CLI commands

Prerequisites

  • Docker installed on your system
  • Docker Compose installed (for the Docker Compose method)

Usage

Method 1: Using Docker Compose

  1. Navigate to the basic-docker-for-devops directory:

    cd basic-docker-for-devops
  2. Start the containers:

    docker-compose up -d
    
  3. Access WordPress at http://localhost:8000

  4. To stop the containers:

    docker-compose down
    

Method 2: Using 733F Docker Commands

  1. Navigate to the basic-docker-for-devops directory:

    cd basic-docker-for-devops
    
  2. Make the script executable and run it:

    chmod +x run-containers.sh
    ./run-containers.sh
    
  3. Access WordPress at http://localhost:8000

  4. To stop the containers:

    docker stop app db
    

Volumes

This setup uses Docker volumes to persist data:

  • wordpress: Stores WordPress files
  • db: Stores the MySQL database

Environment Configuration

The WordPress installation uses the following database credentials:

  • Database name: culiop_demo
  • Username: culiop_demo
  • Password: culiop_demo

⚠️ WARNING: This code is for tutorial purposes only. Do not use these configurations in production environments.

Health Checks

The WordPress container includes health checks to ensure the application is responding correctly.

About

A place to store all resources, guide and code for Docker-101 course

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0