-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (34 loc) · 887 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
35 lines (34 loc) · 887 Bytes
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
version: '2'
services:
brain:
build:
context: .
dockerfile: ./src/brain/Dockerfile
command: 'npm run brain:prod'
expose:
- '8080'
environment:
DEBUG: '*'
# map the ./data folder to our data volume defined below
volumes:
- brain-data:/usr/brain/data
slackbot:
build:
context: .
dockerfile: ./src/slackbot/Dockerfile
command: 'npm run bot:prod -- --brainURL=http://brain:8080'
environment:
DEBUG: '*'
web:
build:
# No root context here
context: .
dockerfile: ./src/web/Dockerfile
command: 'npm run serve'
ports:
- 5000:5000
environment:
DEBUG: '*'
# Create a named volume for our brain data
volumes:
brain-data: