GithubHelp home page GithubHelp logo

kafkaforks / docker-compose-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mikesir87/docker-compose-demo

0.0 1.0 0.0 2 KB

Demo application used for Docker Blacksburg Meetup

PHP 87.84% Dockerfile 12.16%

docker-compose-demo's Introduction

Docker Compose Demo

This repo contains a simple demo that was built for the Docker Blacksburg Meetup on October 12, 2016.

Application Overview

The application is a simple PHP application that relies on a MySQL database. The database contains a collection of users, with their respective emails, passwords (using a terrible plain-text version for demo), creation date, and an active flag. The PHP app simply outputs a table with all user data.

Running the Default Composition

The default docker-compose.yml file is using the image directive to specify a named image. Obviously, in order for this to work, you need to build the images.

docker build -t my-mysql ./docker/mysql
docker build -t my-php ./docker/php
docker-compose up

Then, open your browser to http://localhost/ to see the application. You should see a simple table containing all users in the database.

Making it Better

Obviously, it's a pain to have to build the images first. So, the docker-compose-build.yml file uses the build directive to build the images to be used in the composition.

docker-compose -f docker-compose-build.yml up

docker-compose-demo's People

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.