-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
106 lines (99 loc) · 2.36 KB
/
compose.yaml
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
version: '3.8'
services:
frontend:
container_name: rs-frontend
restart: always
image: ghcr.io/salab/refsearch-frontend:master
build:
context: .
dockerfile: ./frontend.Dockerfile
ports:
- "8080:80"
volumes:
- caddy_data:/data
- caddy_config:/config
backend:
container_name: rs-backend
restart: always
image: ghcr.io/salab/refsearch-backend:master
build:
context: .
dockerfile: ./backend.Dockerfile
target: api-runner
ports:
- "3000:3000"
environment:
PORT: 3000
MONGODB_USER: root
MONGODB_PASSWORD: password
MONGODB_HOST: rs-mongo
MONGODB_PORT: 27017
volumes:
- ./data:/data
mongodb:
container_name: rs-mongo
restart: always
image: mongo:7.0.7
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: password
volumes:
- ./data/mongodb:/data/db
deploy:
resources:
limits:
memory: 2G
rminer:
container_name: rs-rminer
restart: always
image: ghcr.io/salab/refsearch-rminer:master
build:
context: ./tools/refactoringminer
command: ["serve", "--port", "3000"]
expose:
- "3000"
volumes:
- ./data:/data
refdiff:
container_name: rs-refdiff
restart: always
image: ghcr.io/salab/refsearch-refdiff:master
build:
context: ./tools/refdiff
command: ["serve", "--port", "3000"]
expose:
- "3000"
volumes:
- ./data:/data
runner1:
container_name: rs-runner-1
restart: always
image: ghcr.io/salab/refsearch-runner:master
build:
context: .
dockerfile: ./backend.Dockerfile
target: job-runner
environment:
RUNNER_ID: local-1
MONGODB_USER: root
MONGODB_PASSWORD: password
MONGODB_HOST: rs-mongo
MONGODB_PORT: 27017
DATA_DIR: /data
RMINER_HOST: rminer
RMINER_PORT: 3000
RMINER_BASE_PATH: /data/repos
REFDIFF_HOST: refdiff
REFDIFF_PORT: 3000
REFDIFF_BASE_PATH: /data/repos
# Process plugin example
# PROCESS_PLUGIN_MYDETECTOR_NAME: "Awesome Refactoring Detector"
# PROCESS_PLUGIN_MYDETECTOR_EXECUTABLE: "/plugins/example-process-plugin.sh"
volumes:
- ./data:/data
- ./example/plugins:/plugins
volumes:
caddy_data:
caddy_config: