Update guides to use v2 config format.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
4de12ad7a1
commit
471264239f
4 changed files with 54 additions and 45 deletions
|
|
@ -49,17 +49,19 @@ one's Docker image (the database just runs on a pre-made PostgreSQL image, and
|
|||
the web app is built from the current directory), and the configuration needed
|
||||
to link them together and expose the web app's port.
|
||||
|
||||
db:
|
||||
image: postgres
|
||||
web:
|
||||
build: .
|
||||
command: bundle exec rails s -p 3000 -b '0.0.0.0'
|
||||
volumes:
|
||||
- .:/myapp
|
||||
ports:
|
||||
- "3000:3000"
|
||||
links:
|
||||
- db
|
||||
version: '2'
|
||||
services:
|
||||
db:
|
||||
image: postgres
|
||||
web:
|
||||
build: .
|
||||
command: bundle exec rails s -p 3000 -b '0.0.0.0'
|
||||
volumes:
|
||||
- .:/myapp
|
||||
ports:
|
||||
- "3000:3000"
|
||||
depends_on:
|
||||
- db
|
||||
|
||||
### Build the project
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue