зеркало из https://github.com/docker/labs.git
Updating compose files to v3
This commit is contained in:
Родитель
33ecff68e5
Коммит
421646b3b8
|
@ -50,7 +50,7 @@ There are several options to inject the configuration in the build, among them
|
|||
We'll go for the second option and define a docker-compose file where the MONGO_URL will be set with the value of the execution environment
|
||||
|
||||
```
|
||||
version: '2'
|
||||
version: '3'
|
||||
services:
|
||||
mongo:
|
||||
image: mongo:3.2
|
||||
|
|
|
@ -32,7 +32,7 @@ Once done, the app needs to be rebuilt `docker build -t message-app:v0.2 .`
|
|||
**REDIS_HOST** needs to be added to the docker-compose file as the new release will run against this kv store.
|
||||
|
||||
```
|
||||
version: '2'
|
||||
version: '3'
|
||||
services:
|
||||
mongo:
|
||||
image: mongo:3.2
|
||||
|
|
|
@ -11,7 +11,7 @@ The host has the responsibility to route the request to the correct application
|
|||
Docker already handles that for us, as we can see in the docker-compose file. The **app** container exposes port 80 internally and the host maps it against its port 8000.
|
||||
|
||||
```
|
||||
version: '2'
|
||||
version: '3'
|
||||
services:
|
||||
mongo:
|
||||
image: mongo:3.2
|
||||
|
|
|
@ -43,7 +43,7 @@ As you can see it installs [nodemon](http://nodemon.io/), a utility that will mo
|
|||
You'll start the app with the `docker-compose.yml`
|
||||
|
||||
```
|
||||
version: "2"
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
web:
|
||||
|
|
|
@ -143,7 +143,7 @@ The application container (named **app**) is connected to mongo container using
|
|||
The following file (docker-compose.yml) defines the whole application
|
||||
|
||||
```
|
||||
version: '2'
|
||||
version: '3'
|
||||
services:
|
||||
mongo:
|
||||
image: mongo:3.2
|
||||
|
@ -202,7 +202,7 @@ It will update it's configuration each time a container is started / stopped.
|
|||
The new version of our docker-compose.yml is
|
||||
|
||||
```
|
||||
version: '2'
|
||||
version: '3'
|
||||
services:
|
||||
mongo:
|
||||
image: mongo:3.2
|
||||
|
|
|
@ -120,7 +120,7 @@ The image can now be used in our Docker Compose file.
|
|||
The new version of the docker-compose.yml file is the following one
|
||||
|
||||
```
|
||||
version: '2'
|
||||
version: '3'
|
||||
services:
|
||||
mongo:
|
||||
image: mongo:3.2
|
||||
|
|
|
@ -36,7 +36,7 @@ If using Windows Server 2016 and accessing from outside the VM or host, simply u
|
|||
Take a closer look at the `docker-compose.windows.yml` file.
|
||||
|
||||
```
|
||||
version: '2'
|
||||
version: '3'
|
||||
services:
|
||||
db:
|
||||
image: microsoft/mssql-server-2016-express-windows
|
||||
|
|
Загрузка…
Ссылка в новой задаче