From 6109316579d197bf4aa250383b9ab953ae0bc04e Mon Sep 17 00:00:00 2001 From: John Griffiths Date: Wed, 9 Aug 2017 23:01:54 -0400 Subject: [PATCH] Update readme and fix www path. --- README.md | 31 +++++++++++++++++++++++++++++++ docker-compose.yml | 6 +++--- www/index.php | 2 +- 3 files changed, 35 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 83edd5b..e097ea2 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,33 @@ # simple-docker + A simple docker-compose setup for Perch or Runway + +## Getting Started + +First install Docker, if you're on a mac this is simple with the brilliant docker installer https://docs.docker.com/docker-for-mac/install/ + +Now once you have Docker installed check it's available in your terminal by running: + + docker --version + +You should get something like: + + Docker version 17.06.0-ce, build 02c1d87 + +If that's the case you're now ready to run docker. + +## Up and running + +Now provision and start up the Docker Compose environment by running in your terminal: + + docker-compose up + +This will pull the latest php & mysql docker images and get them up and running. + +You may get Apache complain with "Could not reliably determine the server's fully qualified domain name, using 172.18.0.3. Set the 'ServerName' directive globally to suppress this message" but that's just because the php docker recipe doesn't automatically assign a Server Name, nothing to worry about for now. + +Ok, now point your browser to => http://0.0.0.0 + +You should see the PHP Info page which is proof it's serving anything in this repo's /www directory, place your files in there and your ready to roll. + +Enjoy. diff --git a/docker-compose.yml b/docker-compose.yml index 82c3327..8b98f3a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,16 +8,16 @@ services: - "80:80" - "443:443" volumes: - - /Users/rachel/Docker/simple-docker/www:/var/www/html + - ./www:/var/www/html links: - db db: image: mysql:5.7 - ports: + ports: - "3306:3306" volumes: - ./db:/var/lib/mysql environment: - MYSQL_ROOT_PASSWORD=docker - - MYSQL_DATABASE=db_runwaytest \ No newline at end of file + - MYSQL_DATABASE=db_runwaytest diff --git a/www/index.php b/www/index.php index c9f5eeb..147cebc 100644 --- a/www/index.php +++ b/www/index.php @@ -1 +1 @@ - \ No newline at end of file +