mirror of https://github.com/JoeBiellik/paste
Update to Compose 2 syntax
parent
b241c37aee
commit
67ad912f0a
@ -1,7 +1,23 @@
|
|||||||
|
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:
|
db:
|
||||||
|
container_name: db
|
||||||
image: mongo:latest
|
image: mongo:latest
|
||||||
command: "--smallfiles"
|
command: "--smallfiles"
|
||||||
ports:
|
|
||||||
- 27017:27017
|
|
||||||
volumes:
|
volumes:
|
||||||
- ~/db:/data/db
|
- ./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…
Reference in New Issue