master
Kar 2024-09-20 20:23:54 +05:30
parent bca6c309f0
commit 996f7b4cea
4 changed files with 50 additions and 0 deletions

6
docker-compose.dev.yml Normal file
View File

@ -0,0 +1,6 @@
version: '3'
services:
node-app:
container_name: node-app-dev
command: yarn dev -L

6
docker-compose.prod.yml Normal file
View File

@ -0,0 +1,6 @@
version: '3'
services:
node-app:
container_name: node-app-prod
command: yarn start

6
docker-compose.test.yml Normal file
View File

@ -0,0 +1,6 @@
version: '3'
services:
node-app:
container_name: node-app-test
command: yarn test

32
docker-compose.yml Normal file
View File

@ -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