This repository has been archived by the owner on Mar 14, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
65 lines (58 loc) · 1.54 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
version: '3.3'
services:
graphdb:
image: miguelfbrito/clav_graphdb
# build: ./graphdb
networks:
- network_backend
mongodb:
image: mongo:latest
ports:
- 27017:27017
networks:
- network_backend
# environment:
# MONGO_INITDB_ROOT_USERNAME: 'username'
# MONGO_INITDB_ROOT_PASSWORD: 'password'
networks:
- network_backend
node:
#build: ./server
image: miguelfbrito/clav_node
environment:
MONGO_URI: 'mongodb://mongodb:27017/clav'
GRAPHDB_URI: 'http://graphdb:7200'
GRAPHDB_REPOSITORY: 'clav'
FILE_STORE_SECRET_KEY: 'clav_api'
PASSPORT_SECRET_KEY: 'clav_api'
JWT_SECRET_KEY: 'clav_api'
ports:
- 8000:8000
expose:
- 8000
networks:
- network_backend
- network_frontend
depends_on:
- mongodb
- graphdb
command: ["./wait-for-it.sh", "mongodb:27017", "--", "npm", "start"]
client:
image: miguelfbrito/clav_client
#build: ./client
ports:
- 3000:3000
environment:
env_file: .env
BACKEND: 'http://node:8000'
volumes:
- /usr/src/app/node_modules
networks:
- network_frontend
depends_on:
- node
networks:
network_backend:
driver: "bridge"
network_frontend:
driver: "bridge"