mirror of https://github.com/JoeBiellik/paste
Update Docker configuration
parent
47d147c357
commit
acc1ee7ae6
@ -1,2 +1,3 @@
|
|||||||
.vagrant
|
/.vagrant
|
||||||
node_modules
|
/node_modules
|
||||||
|
/db
|
||||||
|
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"port": 80,
|
||||||
|
"db": "db/paste"
|
||||||
|
}
|
@ -1,9 +1,7 @@
|
|||||||
db:
|
db:
|
||||||
image: mongo:latest
|
image: mongo:latest
|
||||||
command: "--smallfiles"
|
command: "--smallfiles"
|
||||||
hostname: "db"
|
|
||||||
container_name: "db"
|
|
||||||
ports:
|
ports:
|
||||||
- "27017:27017"
|
- 27017:27017
|
||||||
volumes:
|
volumes:
|
||||||
- ~/mongo:/data/db
|
- ~/db:/data/db
|
||||||
|
@ -0,0 +1,20 @@
|
|||||||
|
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