1
0
mirror of https://github.com/sasjs/server.git synced 2025-12-10 19:34:34 +00:00

chore: docker configured for development api+web+mongodb

This commit is contained in:
Saad Jutt
2021-11-14 09:03:38 +05:00
parent d5024012c4
commit 4792f15c40
9 changed files with 62 additions and 27 deletions

View File

@@ -1,20 +1,26 @@
version: '3.4'
services:
server:
image: server
build:
context: .
dockerfile: ./Dockerfile
sasjs_server_api:
image: sasjs_server_api
build: ./api
environment:
NODE_ENV: production
DB_CONNECT: mongodb://mongodb:27017/sasjs
ports:
- 5000:5000
volumes:
- .:/usr/src/app
- ./api:/usr/server/api
links:
- mongodb
sasjs_server_web:
image: sasjs_server_web
build: ./web
ports:
- 3000:3000
volumes:
- ./web:/usr/server/web
mongodb:
image: mongo:latest
ports: