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
docker
directory within the project directory:
git clone git@github.com:yamanote1138/mhdgc-docker.git docker
- clone the mhdgc-www repo into a directory named
www
in your project directory:
git clone git@github.com:yamanote1138/mhdgc-www.git www
- create a
data
directory:
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)