-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·181 lines (166 loc) · 3.97 KB
/
docker-compose.yml
File metadata and controls
executable file
·181 lines (166 loc) · 3.97 KB
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
version: '3.9'
networks:
internal:
driver: bridge
internal: true
default:
driver: bridge
services:
minio:
image: minio/minio
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
command: server /data --console-address ":9001"
volumes:
- minio_storage:/data
networks:
- default
- internal
redis:
image: redis:alpine
hostname: redis
ports:
- "6379:6379"
command: redis-server --appendonly yes
volumes:
- redis_data:/data
networks:
- default
- internal
rabbitmq:
image: rabbitmq:3-management
ports:
- "5672:5672"
- "15672:15672"
networks:
- default
- internal
healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "ping"]
interval: 10s
timeout: 5s
retries: 5
python-base:
image: python-base:v1.0.0
build:
context: .
dockerfile: Dockerfile.python-base
networks:
- default
- internal
base:
image: base:v1.0.0
build:
context: .
dockerfile: Dockerfile.base
depends_on:
- python-base
networks:
- default
- internal
ui:
image: ml-platform-ui:v1.0.0
build:
context: ./ui
dockerfile: Dockerfile
ports:
- "3000:80"
environment:
- NODE_ENV=production
depends_on:
- api
networks:
- default
restart: unless-stopped
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost" ]
interval: 30s
timeout: 3s
retries: 3
start_period: 5s
api:
image: application:v1.0.0
privileged: true
build:
context: .
dockerfile: Dockerfile.api
extra_hosts:
- "licensing.scitools.com:127.0.0.1"
- "stats.scitools.com:127.0.0.1"
volumes:
- scitools_root_config:/root/.config/SciTools
- scitools_python_api:/root/.local/share/SciTools/Understand
- und_dbs:/opt/understand_dbs
- projects:/opt/projects
- csv_pmd:/opt/csv_reports
devices:
- /dev/dri:/dev/dri
ipc: host
hostname: root
mac_address: 02:42:ac:11:00:02
shm_size: 8g
mem_limit: 12g
restart: unless-stopped
cap_add:
- SYS_PTRACE
- SYS_RESOURCE
security_opt:
- seccomp=unconfined
ulimits:
nofile:
soft: 65536
hard: 65536
ports:
- "8000:8000"
environment:
# Application environment variables
- INSTALLDIR=/app/
- PROJECTS_BASE_DIR=/opt/projects
- DB_BASE_DIR=/opt/understand_dbs
- HOSTNAME=api
- XDG_RUNTIME_DIR=/tmp/runtime-root
# Understand license environment variables
- STIDOSUTILDIR=/root/.config/SciTools
- STIHOME=/app/scitools
- STILICENSE=/root/.config/SciTools/License.conf
- UNDERSTAND_API_LICENSE=/root/.local/share/SciTools/Understand/python_api.cfg
# Path environment variables
- PATH=/app/scitools/bin/linux64:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
- PYTHONPATH=/app:/app/scitools/bin/linux64/Python
- LD_LIBRARY_PATH=/app/scitools/bin/linux64
# Qt environment variables
- QT_QPA_PLATFORM=offscreen
- QT_DEBUG_PLUGINS=0
- QT_NO_SSL=1
- QT_MUTEX_WAIT_TIME=0
# External service connections
- MINIO_ENDPOINT=minio:9000
- MINIO_ACCESS_KEY=00jFBl7n9Jn0ex0XL7m1
- MINIO_SECRET_KEY=kYfujzkdSGjXKLN9oQhPDIVgRUaZRijvj1yaXmIZ
- MINIO_CODESMELLS_BUCKET=code-smells
- REDIS_CLIENT_NAME=redis
- REDIS_PASSWORD=redis
- REDIS_HOST=redis
- REDIS_PORT=6379
- CELERY_BROKER_URL=amqp://guest:guest@rabbitmq:5672//
- CELERY_RESULT_BACKEND=redis://redis:6379/0
depends_on:
- minio
- rabbitmq
- redis
- base
networks:
- default
- internal
volumes:
minio_storage:
redis_data:
und_dbs:
projects:
csv_pmd:
scitools_root_config:
scitools_python_api: