Giter Site home page Giter Site logo

devops-9 / docker-compose-multi-container-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sofianeogalaxy/docker-compose-multi-container-app

0.0 0.0 0.0 17 KB

This repository contains the Docker Compose files and Dockerfiles needed to create a multi-container Docker application that includes a Jenkins server, a CentOS container with the AWS CLI installed, a MySQL database server, and an Ansible web server.

Shell 37.01% Dockerfile 62.99%

docker-compose-multi-container-app's Introduction

docker-compose-multi-container-app

This repository contains the Docker Compose files and Dockerfiles needed to create a multi-container Docker application that includes a Jenkins server, a CentOS container with the AWS CLI installed, a MySQL database server, and an Ansible web server.

Usage:

  1. Clone the repository:
git clone https://github.com/SofiaNeogalaxy/docker-compose-multi-container-app.git
  1. Navigate to the cloned directory:
cd <your-repository>
  1. Set up your environment variables:
export DB_HOST=<your-database-host>; export DB_PASSWORD=<your-database-password>; export DB_NAME=<your-database-name>; export AWS_SECRET=<your-aws-secret-key>; export BUCKET_NAME=<your-aws-s3-bucket-name>
  1. Run the script to create a backup of your database and upload it to S3:
./script.sh $DB_HOST $DB_PASSWORD $DB_NAME $AWS_SECRET $BUCKET_NAME
  1. Build the Docker images:
docker-compose build
  1. Start the Docker containers:
docker-compose up -d
  1. Access the Jenkins dashboard at http://localhost:8080.
  2. Use Ansible to configure your remote host:
ansible-playbook -i hosts play.yml
  1. Use the put.sh script to generate random data and add it to a file:
  ./put.sh

docker-compose-multi-container-app's People

Contributors

sofianeogalaxy 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.