Skip to content

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.

Notifications You must be signed in to change notification settings

SofiaNeogalaxy/docker-compose-multi-container-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published