-
Notifications
You must be signed in to change notification settings - Fork 86
/
Copy pathdocker-compose.yml
43 lines (41 loc) · 1.04 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
version: '3.2'
#Mongo volumes currently do not work on windows.
services:
rasatalk:
build:
context: .
dockerfile: ./internals/docker/Dockerfile
command: npm run start:prod
environment:
- MONGOCONNECTIONSTRING=mongodb://mongodb:27017/admin
- RASASERVER=http://rasa:5000
- DEBUG=*,-babel
- PORT=80
ports:
- "8080:80"
volumes:
- ./app:/code/app
- ./package.json:/code/package.json
- ./yarn.lock:/code/yarn.lock
- ./server:/code/server
links:
- "rasa"
- "mongodb"
rasa:
container_name: "rasa"
image: rasa/rasa_nlu:stable-full
restart: always
volumes:
- ./data/rasa/projects:/app/projects
- ./data/rasa/logs:/app/logs
- ./data/rasa/data:/app/data
mongodb:
container_name: "mongo"
image: mongo
restart: always
volumes:
- ./data/mongo:/data/db
environment:
- MONGO_INITDB_ROOT_USERNAME=your_username
- MONGO_INITDB_ROOT_PASSWORD=your_password
- MONGO_INITDB_DATABASE=your_db # same of .env