Skip to content

Commit f5a2569

Browse files
committed
updated readme
1 parent e233d69 commit f5a2569

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

readme.me

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ cd /path/to/repo/docker-nginx-php
99
docker built -t webapp . # Build a Docker image named "webapp" from this location "."
1010
# wait for it to build...
1111

12-
#Run the docker container
12+
# Run the docker container
1313
docker run -v /path/to/local/web/files:/var/www:rw -p 80:80 -d webapp /sbin/my_init --enable-insecure-key
14+
```
1415

1516
This will bind local port 80 to the container's port 80. This means you should be able to go to "localhost" in your browser (or the IP address of your virtual machine oh which Docker is running) and see your web application files.
1617

@@ -20,3 +21,4 @@ This will bind local port 80 to the container's port 80. This means you should b
2021
* `-d webapp` - Use the image tagged "webapp"
2122
* `/sbin/my_init` - Run the init scripts used to kick off long-running processes and other bootstrapping, as per [phusion/baseimage-docker](https://github.com/phusion/baseimage-docker)
2223
* `--enable-insecure-key` - Enable a generated SSL key so you can SSH into the container, again as per [phusion/baseimage-docker](https://github.com/phusion/baseimage-docker). Generate your own SSH key for production use.
24+
* If you use this with [fideloper/docker-mysql](https://github.com/fideloper/docker-mysql), then link this container with MySQL's (after running the MySQL container first) via `-link mysql:db`

0 commit comments

Comments
 (0)