-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (50 loc) · 1.19 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
version: '3.8'
services:
elasticsearch:
image: elasticsearch:7.17.0
environment:
- discovery.type=single-node
- ELASTIC_PASSWORD=${ELASTICSEARCH_PASSWORD}
ports:
- "9200:9200"
- "9300:9300"
ngrok:
image: ngrok/ngrok:alpine
environment:
NGROK_AUTHTOKEN: ${NGROK_AUTHTOKEN}
command: 'http host.docker.internal:3000'
ports:
- '4040:4040'
expose:
- '4040'
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
- NODE_ENV=${NODE_ENV}
- CORS_ORIGIN=${CORS_ORIGIN}
- PORT=${PORT}
- ELASTICSEARCH_HOST=${ELASTICSEARCH_HOST}
- ELASTICSEARCH_USERNAME=${ELASTICSEARCH_USERNAME}
- ELASTICSEARCH_PASSWORD=${ELASTICSEARCH_PASSWORD}
- OUTLOOK_CLIENT_ID=${OUTLOOK_CLIENT_ID}
- OUTLOOK_CLIENT_SECRET=${OUTLOOK_CLIENT_SECRET}
- NGROK_AUTHTOKEN=${NGROK_AUTHTOKEN}
- ENVIRONMENT=production
depends_on:
- ngrok
- elasticsearch
command: npm run start
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "3001:80"
depends_on:
- backend
volumes:
es-data: