update
This commit is contained in:
parent
827811d664
commit
8903a5508f
9 changed files with 49 additions and 31 deletions
|
|
@ -6,7 +6,7 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href='http://fonts.googleapis.com/css?family=Lilita+One|Lato:300,400,700' rel='stylesheet' type='text/css'>
|
||||
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="css/fig.css?20140228081933111372101">
|
||||
<link rel="stylesheet" type="text/css" href="css/fig.css?20140303091963271416714">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
|
|
@ -26,14 +26,14 @@
|
|||
<div class="highlight"><pre><code class="text language-text" data-lang="text">FROM orchardup/php5
|
||||
ADD . /code
|
||||
</code></pre></div>
|
||||
<p>This instructs Docker on how to build an image that contains PHP and Wordpress. For more information on how to write Dockerfiles, see the <a href="https://www.docker.io/learn/dockerfile/">Dockerfile tutorial</a> and the <a href="http://docs.docker.io/en/latest/use/builder/">Dockerfile reference</a>.</p>
|
||||
<p>This instructs Docker on how to build an image that contains PHP and Wordpress. For more information on how to write Dockerfiles, see the <a href="https://www.docker.io/learn/dockerfile/">Dockerfile tutorial</a> and the <a href="http://docs.docker.io/en/latest/reference/builder/">Dockerfile reference</a>.</p>
|
||||
|
||||
<p>Next up, <code>fig.yml</code> starts our web service and a separate MySQL instance:</p>
|
||||
<div class="highlight"><pre><code class="text language-text" data-lang="text">web:
|
||||
build: .
|
||||
command: php -S 0.0.0.0:8000 -t /code
|
||||
ports:
|
||||
- 8000:8000
|
||||
- "8000:8000"
|
||||
links:
|
||||
- db
|
||||
volumes:
|
||||
|
|
@ -41,7 +41,7 @@ ADD . /code
|
|||
db:
|
||||
image: orchardup/mysql
|
||||
ports:
|
||||
- 3306:3306
|
||||
- "3306:3306"
|
||||
environment:
|
||||
MYSQL_DATABASE: wordpress
|
||||
</code></pre></div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue