Docker for Drupal and AWS

Compiling research on building out a Docker based blog.

Dockerize an Existing Project

docker-compose build

alternet port settings

How to import database in MySQL in Docker?

“Login to your Docker instance”

How To SSH Into A Running Docker Container And Run Commands

docker exec -it doc_coupa_web_1 /bin/bash

login to mysql docker.,new%20password%20to%20be%20used. The MySQL password docker logs container_name

dock Load a database into docker. docker exec -i mysql_container mysql -uroot -psecret mysql < db.sql

docker exec -i doc_coupa_db_1 mysql -uroot -psecret drupaldb < sql.mysql

How to add new host entry in /etc/hosts when a docker container is run,creating%20a%20new%20docker%20container.

How To Run Your Entire Development Environment in Docker Containers on macOS

Is it possible to configure a virtualhost in a docker container with Apache? Set a local web development environment with custom Urls and HTTPS

Can I map a IP address and a port with /etc/hosts? What David Postill says is correct, but if you are really hoping to get rid of the 8000 port for local testing you might want to investigate setting up a reverse proxy via Apache or Nginx. That is the most common and accepted way to map a port-based address like to – JakeGould Mar 27 ‘17 at 13:29

Running virtual hosts in apache docker container

port is already allocated -p ####:80 - map port #### of the host to port 80 in the container

-p ####:80 - map port #### of the host to port 80 in the container

docker run -p 81:80 docker/getting-started

How to Deploy Drupal with Docker Containers

6 Reasons To Deploy Drupal 8 With Docker

Containers on AWS: An Introduction


docker docker-compose

cd path/to/project docker-compose kill docker-compose rm -fv docker-compose pull docker-compose up -d

-d, --detach               Detached mode: Run containers in the background,

git repository 

settings.php has
$settings['container_yamls'][] = $app_root . '/' . $site_path . '/services.yml';
include $app_root . '/' . $site_path . '/settings.local.php';

and Databse Connection

Load mysql docker exec -i doc_coupa_db_1 mysql -uroot -psecret drupaldb < sql.mysql

Connect to cli to run drush. docker exec -it doc_coupa_web_1 /bin/bash Running Drupal in Kubernetes with Docker in production