diff options
Diffstat (limited to 'Services/php')
-rw-r--r-- | Services/php/README.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Services/php/README.md b/Services/php/README.md index 5a407a4..7f1161f 100644 --- a/Services/php/README.md +++ b/Services/php/README.md @@ -4,6 +4,12 @@ This container run php via apache on fedora server. ## Running from docker registry docker run -d -p 80:80 --name="php" startx/sv-php + # when used with a volume container (run data container, then run service) + docker run -d -v /var/www/html -v /var/log/httpd --name php-data startx/sv-php echo "Data container for php webserver" + docker run -d -p 80:80 --volumes-from php-data --name="php" startx/sv-php + when linked to another container + docker run -d --name="mongo" startx/sv-mongo + docker run -d -p 80:80 --name="php" --link mongo:mongo startx/sv-php ## Build and run from local Dockerfile ### Building docker image |