-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
44 lines (43 loc) · 1.14 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
version: "3.7"
services:
block-printer-load-db:
environment:
CLICKHOUSE_ENDPOINT: ${CLICKHOUSE_ENDPOINT}
NODE_URL: ${NODE_URL}
PERSISTED_CLASSIFIER_NAME: ${PERSISTED_CLASSIFIER_NAME}
image: block-printer-load-db:latest
build:
context: ./
dockerfile: ./load-db-dockerfile
container_name: block-printer-load-db-container
restart: "always"
init: true
command: >-
--node-url
${NODE_URL}
--model-folder
model
--persist-classifier
${PERSISTED_CLASSIFIER_NAME}
${CLICKHOUSE_ENDPOINT}
network_mode: "host"
volumes:
- ./${MODEL_PATH}:/app/model
- ./persisted_classifier:/app/persisted_classifier
block-printer-server:
environment:
NODE_URL: ${NODE_URL}
MODEL_PATH: ${MODEL_PATH}
image: block-printer-server:latest
build:
context: ./
dockerfile: ./server-dockerfile
container_name: block-printer-server-container
init: true
command: >-
--node-url
${NODE_URL}
model
network_mode: "host"
volumes:
- ./${MODEL_PATH}:/app/model