-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
50 lines (50 loc) · 1.71 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
version: "2"
services:
backend:
build: backend
image: bayesimpact/noah-notification-backend
volumes:
- ./backend/package.json:/usr/app/package.json:ro
- ./backend/notification_handler.js:/usr/app/notification_handler.js:ro
- ./backend/config.js:/usr/app/config.js:ro
- ./.eslintrc.json:/usr/app/.eslintrc.json:ro
environment:
- FIREBASE_ADMIN_PRIVATE_KEY
- TWILIO_NUMBER
- TWILIO_ACCOUNT_SID
- TWILIO_AUTH_TOKEN
frontend:
build: frontend
volumes:
- ./frontend/cfg:/usr/app/cfg:ro
- ./frontend/src:/usr/app/src:ro
- ./frontend/tests:/usr/app/tests:ro
- ./frontend/package.json:/usr/app/package.json:ro
- ./frontend/server.js:/usr/app/server.js:ro
- ./frontend/webpack.config.js:/usr/app/webpack.config.js:ro
- ./.babelrc:/usr/app/.babelrc:ro
# For linting.
- ./.eslintrc.json:/usr/app/.eslintrc.json:ro
- ./.eslintignore:/usr/app/.eslintignore:ro
# Firebase
- ./frontend/.firebaserc:/usr/app/.firebaserc:ro
- ./frontend/firebase.json:/usr/app/firebase.json:ro
- ./frontend/database.rules.json:/usr/app/database.rules.json:ro
ports:
- "3005:80"
environment:
- FIREBASE_TOKEN
data-preparation:
image: data-preparation
build:
context: ./data_analysis
command: start-notebook.sh --NotebookApp.token=''
ports:
- 8889:8888
volumes:
- ./data_analysis/notebooks/:/home/jovyan/work/notebooks
- ./data_analysis/data/:/home/jovyan/work/data
- ./data_analysis/watches_importer.py:/home/jovyan/work/watches_importer.py:ro
environment:
- PYTHONPATH=/home/jovyan/work
- FIREBASE_ADMIN_PRIVATE_KEY