-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
69 lines (55 loc) · 1.64 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
version: "3.9"
services:
ocrd-monitor:
depends_on:
ocrd-database:
condition: service_started
build:
context: .
# args:
# VCS_REF: ...
# BUILD_DATE: ...
image: ${MONITOR_IMAGE}
hostname: ${MONITOR_HOST}
environment:
MANAGER_URL: "http://${MANAGER_HOST}:${MANAGER_PORT_WEB}"
MONITOR_PORT_LOG: ${MONITOR_PORT_LOG}
MONITOR_DB_CONNECTION: "mongodb://${MONITOR_DB_ROOT_USER:-root}:${MONITOR_DB_ROOT_PASSWORD:-root_password}@ocrd-database:27017"
ports:
- ${MONITOR_PORT_WEB}:5000
volumes:
- ${MANAGER_DATA}:/data
- ${MANAGER_WORKFLOWS}:/workflows
- shared:/run/lock/ocrd.jobs
ocrd-logview:
image: amir20/dozzle:latest
volumes:
# double slash is mandatory to support windows
- //var/run/docker.sock:/var/run/docker.sock
ports:
- ${MONITOR_PORT_LOG}:8080
environment:
- DOZZLE_FILTER=name=ocrd_kitodo
# DOZZLE_USERNAME=
# DOZZLE_PASSWORD=
ocrd-database:
image: "mongo:latest"
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONITOR_DB_ROOT_USER:-root}
MONGO_INITDB_ROOT_PASSWORD: ${MONITOR_DB_ROOT_PASSWORD:-root_password}
volumes:
- db-volume:/data/db
ocrd-database-management:
image: mongo-express:latest
depends_on:
ocrd-database:
condition: service_started
ports:
- ${MONITOR_PORT_DBM:-8081}:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: ${MONITOR_DB_ROOT_USER:-root}
ME_CONFIG_MONGODB_ADMINPASSWORD: ${MONITOR_DB_ROOT_PASSWORD:-root_password}
ME_CONFIG_MONGODB_SERVER: ocrd-database
volumes:
db-volume:
shared: