update
This commit is contained in:
parent
2659567b01
commit
a6ae3ed144
8 changed files with 16 additions and 14 deletions
2
cli.html
2
cli.html
|
|
@ -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?20140304091107842780509">
|
||||
<link rel="stylesheet" type="text/css" href="css/fig.css?20140305091426861355716">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
|
|
|
|||
|
|
@ -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?20140304091107842780509">
|
||||
<link rel="stylesheet" type="text/css" href="css/fig.css?20140305091426861355716">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
|
|
@ -38,8 +38,6 @@ ADD . /code/
|
|||
<p>Simple enough. Finally, this is all tied together with a file called <code>fig.yml</code>. It describes the services that our app comprises of (a web server and database), what Docker images they use, how they link together, what volumes will be mounted inside the containers and what ports they expose.</p>
|
||||
<div class="highlight"><pre><code class="text language-text" data-lang="text">db:
|
||||
image: orchardup/postgresql
|
||||
ports:
|
||||
- "5432"
|
||||
web:
|
||||
build: .
|
||||
command: python manage.py runserver 0.0.0.0:8000
|
||||
|
|
|
|||
2
env.html
2
env.html
|
|
@ -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?20140304091107842780509">
|
||||
<link rel="stylesheet" type="text/css" href="css/fig.css?20140305091426861355716">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
|
|
|
|||
|
|
@ -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?20140304091107842780509">
|
||||
<link rel="stylesheet" type="text/css" href="css/fig.css?20140305091426861355716">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
|
|
|
|||
|
|
@ -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?20140304091107842780509">
|
||||
<link rel="stylesheet" type="text/css" href="css/fig.css?20140305091426861355716">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
|
|
@ -27,11 +27,11 @@ $ docker-osx shell
|
|||
<p>Docker has guides for <a href="http://docs.docker.io/en/latest/installation/ubuntulinux/">Ubuntu</a> and <a href="http://docs.docker.io/en/latest/installation/">other platforms</a> in their documentation.</p>
|
||||
|
||||
<p>Next, install Fig. On OS X:</p>
|
||||
<div class="highlight"><pre><code class="text language-text" data-lang="text">$ curl -L https://github.com/orchardup/fig/releases/download/0.3.1/darwin > /usr/local/bin/fig
|
||||
<div class="highlight"><pre><code class="text language-text" data-lang="text">$ curl -L https://github.com/orchardup/fig/releases/download/0.3.2/darwin > /usr/local/bin/fig
|
||||
$ chmod +x /usr/local/bin/fig
|
||||
</code></pre></div>
|
||||
<p>On 64-bit Linux:</p>
|
||||
<div class="highlight"><pre><code class="text language-text" data-lang="text">$ curl -L https://github.com/orchardup/fig/releases/download/0.3.1/linux > /usr/local/bin/fig
|
||||
<div class="highlight"><pre><code class="text language-text" data-lang="text">$ curl -L https://github.com/orchardup/fig/releases/download/0.3.2/linux > /usr/local/bin/fig
|
||||
$ chmod +x /usr/local/bin/fig
|
||||
</code></pre></div>
|
||||
<p>Fig is also available as a Python package if you're on another platform (or if you prefer that sort of thing):</p>
|
||||
|
|
|
|||
|
|
@ -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?20140304091107842780509">
|
||||
<link rel="stylesheet" type="text/css" href="css/fig.css?20140305091426861355716">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
|
|
|
|||
|
|
@ -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?20140304091107842780509">
|
||||
<link rel="stylesheet" type="text/css" href="css/fig.css?20140305091426861355716">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
|
|
@ -40,8 +40,6 @@ ADD . /code
|
|||
- .:/code
|
||||
db:
|
||||
image: orchardup/mysql
|
||||
ports:
|
||||
- "3306:3306"
|
||||
environment:
|
||||
MYSQL_DATABASE: wordpress
|
||||
</code></pre></div>
|
||||
|
|
|
|||
8
yml.html
8
yml.html
|
|
@ -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?20140304091107842780509">
|
||||
<link rel="stylesheet" type="text/css" href="css/fig.css?20140305091426861355716">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
|
|
@ -55,6 +55,12 @@
|
|||
<span class="p-Indicator">-</span> <span class="s">"8000:8000"</span>
|
||||
<span class="p-Indicator">-</span> <span class="s">"49100:22"</span>
|
||||
|
||||
<span class="l-Scalar-Plain">-- Expose ports without publishing them to the host machine - they'll only be</span>
|
||||
<span class="l-Scalar-Plain">-- accessible to linked services. Only the internal port can be specified.</span>
|
||||
<span class="l-Scalar-Plain">expose</span><span class="p-Indicator">:</span>
|
||||
<span class="p-Indicator">-</span> <span class="s">"3000"</span>
|
||||
<span class="p-Indicator">-</span> <span class="s">"8000"</span>
|
||||
|
||||
<span class="l-Scalar-Plain">-- Map volumes from the host machine (HOST:CONTAINER).</span>
|
||||
<span class="l-Scalar-Plain">volumes</span><span class="p-Indicator">:</span>
|
||||
<span class="p-Indicator">-</span> <span class="l-Scalar-Plain">cache/:/tmp/cache</span>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue