-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.app.yml
More file actions
66 lines (61 loc) · 1.58 KB
/
docker-compose.app.yml
File metadata and controls
66 lines (61 loc) · 1.58 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
version: '3.8'
services:
kbp:
build: .
image: knowledgebase-processor:latest
container_name: kbp-app
volumes:
# Mount your documents directory
- ./:/workspace
# Persist configuration and metadata
- kbp-data:/workspace/.kbp
environment:
# Configure paths for Docker environment
- KBP_WORK_DIR=/workspace
- KBP_HOME=/workspace/.kbp
- KBP_KNOWLEDGE_BASE_PATH=/workspace
- KBP_METADATA_STORE_PATH=/workspace/.kbp/metadata
# Optional: Set config file path
# - KBP_CONFIG_PATH=/workspace/kbp_config.json
working_dir: /workspace
# Run in interactive mode by default
stdin_open: true
tty: true
command: kb --help
# Watch mode service for continuous processing
kbp-watch:
build: .
image: knowledgebase-processor:latest
container_name: kbp-watch
volumes:
- ./:/workspace
- kbp-data:/workspace/.kbp
environment:
- KBP_WORK_DIR=/workspace
- KBP_HOME=/workspace/.kbp
- KBP_KNOWLEDGE_BASE_PATH=/workspace
- KBP_METADATA_STORE_PATH=/workspace/.kbp/metadata
working_dir: /workspace
command: kb publish --watch
profiles:
- watch
# Fuseki SPARQL server (from existing compose file)
fuseki:
image: stain/jena-fuseki:latest
container_name: fuseki-server
ports:
- "3030:3030"
environment:
ADMIN_PASSWORD: admin
JVM_ARGS: -Xmx2g
volumes:
- fuseki-data:/fuseki
command: --update --mem /ds
volumes:
kbp-data:
driver: local
fuseki-data:
driver: local
networks:
default:
name: kbp-network