forked from InfoCompass/backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (42 loc) · 1009 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# docker-compose for local dev environment
# version: "3.8"
services:
# MongoDB
mongo:
image: bitnami/mongodb
ports:
- 27017:27017
# Uncomment in case you would like to persist your DB locally
# volumes:
# - ./mongodb/data:/data/db
environment:
- MONGODB_ROOT_PASSWORD=secret
- MONGODB_USERNAME=deployd
- MONGODB_PASSWORD=secret
- MONGODB_DATABASE=deployd
# Production API
dpd_production:
image: infocompassde/infocompass-dpd:${TAG:-latest}
build:
context: ./
dockerfile: Dockerfile # base image
ports:
- 2413:2413
env_file:
- .env
depends_on:
- mongo
command: ["node", "dpd/production.js"]
# # Public API
public_api:
image: infocompassde/infocompass-public-api:${TAG:-latest}
build:
context: ./
dockerfile: Dockerfile # base image
ports:
- 3003:3003
env_file:
- .env
depends_on:
- mongo
command: ["node", "public_api/public_api.js"]