-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
73 lines (69 loc) · 1.8 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
version: '3'
services:
backend:
build: ui/backend/
ports:
- 5000:5000
depends_on:
- db
environment:
PORT: 5000
DB_URL: mysql+pymysql://root:password@db:3306/database
WAIT_HOSTS: db:3306
WAIT_HOSTS_TIMEOUT: 300
WAIT_SLEEP_INTERVAL: 30
WAIT_HOST_CONNECT_TIMEOUT: 30
frontend:
build:
context: ui/frontend/
args:
RVT_BACKEND: ${RVT_BACKEND:-http://localhost:5000}
RVT_TUTORIAL: ${RVT_TUTORIAL:-http://localhost:8000/README.md}
ports:
- 8888:3000
depends_on:
- backend
db:
image: mysql:5.7
restart: always
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: database
volumes:
- mysql-db:/var/lib/mysql
tutorial:
build: ui/tutorial/
ports:
- 8000:8000
miner:
build:
context: .
dockerfile: rule-miner/Dockerfile
# these two are necessary for starting with a shell
stdin_open: true
tty: true
# environment variables that are used by some scripts
environment:
# application related environment variables
FRONTEND_URL: http://frontend:8888
BACKEND_URL: http://backend:5000
MOST_RECENT_LOGIN_PATH: /tmp/rvt_most_recent_login
EXPORT_DIR: /pipeline/exports
CONFIG_JSON_PATH: /pipeline/config/configuration.json
JARS_DIR: /pipeline/lib-sources
TARGET_PROJECTS_DIR: /pipeline/mining-sources
# java configuration
# setting max heap size
# Xmx: maximum memory allocation pool
# Xms: initial memory allocation pool
_JAVA_OPTIONS: -Xmx4g -Xms4g
volumes:
- ./mining-sources:/pipeline/mining-sources
- ./lib-sources:/pipeline/lib-sources
- ./exports:/pipeline/exports
- m2:/root/.m2
volumes:
mysql-db:
m2: