docker
parent
bca6c309f0
commit
996f7b4cea
|
@ -0,0 +1,6 @@
|
|||
version: '3'
|
||||
|
||||
services:
|
||||
node-app:
|
||||
container_name: node-app-dev
|
||||
command: yarn dev -L
|
|
@ -0,0 +1,6 @@
|
|||
version: '3'
|
||||
|
||||
services:
|
||||
node-app:
|
||||
container_name: node-app-prod
|
||||
command: yarn start
|
|
@ -0,0 +1,6 @@
|
|||
version: '3'
|
||||
|
||||
services:
|
||||
node-app:
|
||||
container_name: node-app-test
|
||||
command: yarn test
|
|
@ -0,0 +1,32 @@
|
|||
version: '3'
|
||||
|
||||
services:
|
||||
node-app:
|
||||
build: .
|
||||
image: node-app
|
||||
environment:
|
||||
- MONGODB_URL=mongodb://mongodb:27017/node-boilerplate
|
||||
ports:
|
||||
- '3000:3000'
|
||||
depends_on:
|
||||
- mongodb
|
||||
volumes:
|
||||
- .:/usr/src/node-app
|
||||
networks:
|
||||
- node-network
|
||||
|
||||
mongodb:
|
||||
image: mongo:4.2.1-bionic
|
||||
ports:
|
||||
- '27017:27017'
|
||||
volumes:
|
||||
- dbdata:/data/db
|
||||
networks:
|
||||
- node-network
|
||||
|
||||
volumes:
|
||||
dbdata:
|
||||
|
||||
networks:
|
||||
node-network:
|
||||
driver: bridge
|
Loading…
Reference in New Issue