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

"feat: added docker containers""

This reverts commit 9e2123cfe9.
This commit is contained in:
Saad Jutt
2021-11-14 00:55:30 +05:00
parent 64656c2919
commit d5024012c4
10 changed files with 151 additions and 0 deletions

34
docker-compose.yml Normal file
View File

@@ -0,0 +1,34 @@
version: '3.4'
services:
server:
image: server
build:
context: .
dockerfile: ./Dockerfile
environment:
NODE_ENV: production
DB_CONNECT: mongodb://mongodb:27017/sasjs
ports:
- 5000:5000
volumes:
- .:/usr/src/app
links:
- mongodb
mongodb:
image: mongo:latest
ports:
- 27017:27017
volumes:
- data:/data/db
mongo-seed-users:
build: ./mongo-seed/users
links:
- mongodb
mongo-seed-clients:
build: ./mongo-seed/clients
links:
- mongodb
volumes:
data: