docker setup for local development of mhdgc.org website
- create a project directory somewhere on your local machine:
mkdir ~you/Documents/mhdgc
cd ~you/Documents/mhdgc - clone this repo into
dockerdirectory within the project directory:
git clone git@github.com:yamanote1138/mhdgc-docker.git docker - clone the mhdgc-www repo into a directory named
wwwin your project directory:
git clone git@github.com:yamanote1138/mhdgc-www.git www - create a
datadirectory:
mkdir data - add dev subdomain to your host config:
sudo echo '127.0.0.1 dev.www.mhdgc.org' >> /etc/hosts
(ideal process and documentation tbd)
cd ~you/Documents/mhdgc/docker
docker-compose up -d (starts Docker containers in detached mode)
in your browser of choice -> http://dev.www.mhdgc.org
cd ~you/Documents/mhdgc/docker
docker-compose down (stops and removes running Docker containers)