Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
- MYSQL_DATABASE=db_runwaytest
2 changes: 1 addition & 1 deletion www/index.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php phpinfo(); ?>
<?php phpinfo(); ?>