Update to Compose 2 syntax

pull/1/head
Joe Biellik 9 years ago
parent b241c37aee
commit 67ad912f0a

@ -1,7 +1,23 @@
db:
image: mongo:latest
command: "--smallfiles"
ports:
- 27017:27017
volumes:
- ~/db:/data/db
version: '2'
services:
app:
container_name: app
image: node:latest
command: "npm run watch"
working_dir: /app
links:
- db
volumes:
- .:/app
ports:
- "3000:80"
environment:
- NODE_ENV=docker
db:
container_name: db
image: mongo:latest
command: "--smallfiles"
volumes:
- ./db:/data/db
expose:
- 27017

@ -1,20 +0,0 @@
node:
image: node:latest
command: "npm start"
working_dir: /app
links:
- db
environment:
- NODE_ENV=docker
volumes:
- .:/app
ports:
- 3000:80
db:
image: mongo:latest
command: "--smallfiles"
volumes:
- ./db:/data/db
expose:
- 27017
Loading…
Cancel
Save