-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
78 lines (77 loc) · 2.92 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
70
71
72
73
74
75
76
77
78
---
#
# File: docker-compose.yml
#
# Manages containers to run the ocr4all application.
#
# Remark: If the UID is set to a user other than root, then all local volumes used in the docker-compose.yml file must first be created with this user.
# Otherwise, Docker will create these volumes with root user rights and the application will not be able to write to these volumes with the desired user.
# Mounted volumes:
# ~/ocr4all/
# ├── assemble
# ├── data
# ├── opt
# │ └── ocr-d
# │ └── resources
# ├── tmp
# └── workspace
# └── projects
#
version: "3.9"
services:
msa-calamari:
hostname: msa-calamari
user: "${UID:-}"
restart: always
environment:
- SPRING_PROFILES_ACTIVE=${CALAMARI_PROFILES:-logging-debug,msa-api,docker}
volumes:
- ${SERVER_ASSEMBLE:-~/ocr4all/assemble}:/srv/ocr4all/assemble
- ${SERVER_DATA:-~/ocr4all/data}:/srv/ocr4all/data
- ${SERVER_TEMPORARY:-~/ocr4all/tmp}:/srv/ocr4all/tmp
- ${SERVER_WORKSPACE_PROJECT:-~/ocr4all/workspace/projects}:/srv/ocr4all/projects
ports:
- "${CALAMARI_API_PORT:-127.0.0.1:9092}:8080"
image: uniwuezpd/ocr4all-msa-calamari:${CALAMARI_DOCKERHUB_TAG:-latest}
msa-ocrd:
hostname: msa-ocrd
user: "${UID:-}"
restart: always
environment:
- SPRING_PROFILES_ACTIVE=${OCRD_PROFILES:-logging-debug,msa-api,docker}
volumes:
- ${SERVER_RESOURCES_ORCD:-~/ocr4all/opt/ocr-d/resources}:/usr/local/share/ocrd-resources
- ${SERVER_WORKSPACE_PROJECT:-~/ocr4all/workspace/projects}:/srv/ocr4all/projects
ports:
- "${OCRD_API_PORT:-127.0.0.1:9091}:8080"
image: uniwuezpd/ocr4all-msa-ocrd:${OCRD_DOCKERHUB_TAG:-latest}
server:
user: "${UID:-}"
restart: always
environment:
- SPRING_PROFILES_ACTIVE=${SERVER_PROFILES:-logging-debug,create-administrator,server,api,api-localhost,documentation,docker}
- OCR4ALL_APPLICATION_SECURITY_ADMINISTRATOR_LOGIN=${SERVER_ADMINISTRATOR_LOGIN:-admin}
- OCR4ALL_APPLICATION_SECURITY_ADMINISTRATOR_PASSWORD=${SERVER_ADMINISTRATOR_PASSWORD:-ocr4all}
volumes:
- ${SERVER_HOME:-~/ocr4all}:/srv/ocr4all
ports:
- "${SERVER_API_PORT:-9090}:8080"
depends_on:
- msa-calamari
- msa-ocrd
image: uniwuezpd/ocr4all-server:${SERVER_DOCKERHUB_TAG:-latest}
webapp:
ports:
- "${WEBAPP_PORT:-8080}:80"
environment:
API_BASE_URL: ${WEBAPP_API_BASE_URL:-http://localhost:9090/api/v1.0}
LAREX_URL: ${WEBAPP_LAREX_URL:-http://localhost:8081/Larex/directLibrary}
restart: always
image: uniwuezpd/ocr4all-frontend:${WEBAPP_DOCKERHUB_TAG:-latest}
larex:
ports:
- "${LAREX_PORT:-8081}:8080"
restart: always
volumes:
- ${SERVER_WORKSPACE:-~/ocr4all/workspace}:/home/books
image: uniwuezpd/larex:legacy