-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
58 lines (55 loc) · 1.32 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
version: '2'
services:
# brain is a python3 container
brain:
build:
context: brain
command: python main.py
volumes:
- ./brain:/brain
- ./nlu:/nlu
depends_on:
- mongodb
environment:
- PYTHONUNBUFFERED=0
it_brain:
build:
context: brain
command: python main.py
volumes:
- ./brain:/brain
- ./nlu:/nlu
depends_on:
- mongodb
environment:
- PYTHONUNBUFFERED=0
- MONGODB_URI=mongodb://mongodb/botcycle_it
- BOT_LANGUAGE=IT
#
# slack_brain:
# build:
# context: brain
# command: python main.py
# volumes:
# - ./brain:/app
# depends_on:
# - mongodb
# environment:
# - MONGODB_URI=mongodb://mongodb/slack_test
# - WEBSOCKET_PATH=slack
# - WEBSOCKET_TOKEN=GOTCHA
# - PYTHONUNBUFFERED=0
# container for mongo database
mongodb:
image: mongo:latest
# map the port of the container to the port of the host, in order to be able to connect via cli
#ports:
#- "27017:27017"
volumes:
- mongo_storage_volume:/data/db
# this shared folder will contain exported database in json
- ./nlu/data/exported:/exported
# provide to the container the script for exporting the database
- ./nlu/data/export_mongo.sh:/export_mongo.sh
volumes:
mongo_storage_volume: