This repository has been archived by the owner on Nov 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
/
docker-compose.yml
151 lines (141 loc) · 4.4 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
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
###############################################################################
# Default Docker Compose configuration
###############################################################################
# This is the default docker-compose configuration for Lodestone.
# You can use it to have a working Lodestone setup out of the box
#
# Visit http://localhost to view the Lodestone dashboard
version: '2.2'
services:
elasticsearch:
image: lodestonehq/lodestone-elasticsearch:v0.1.0
environment:
#- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ./data/elasticsearch:/usr/share/elasticsearch/data
document_processor:
image: lodestonehq/lodestone-document-processor:v0.1.0
volumes:
- ./data/storage/tmp:/tmp
depends_on:
elasticsearch:
condition: service_healthy
rabbitmq:
condition: service_healthy
webapp:
condition: service_healthy
tika:
condition: service_healthy
command:
- /lodestone-document-processor
- start
- --amqp-url=amqp://lodestone:lodestone@rabbitmq:5672
- --api-endpoint=http://webapp:3000
- --tika-endpoint=http://tika:9998
- --elasticsearch-endpoint=http://elasticsearch:9200
thumbnail_processor:
image: lodestonehq/lodestone-thumbnail-processor:v0.1.0
depends_on:
rabbitmq:
condition: service_healthy
webapp:
condition: service_healthy
command:
- /usr/bin/lodestone-thumbnail-processor
- start
- --amqp-url=amqp://lodestone:lodestone@rabbitmq:5672
- --api-endpoint=http://webapp:3000
webapp:
image: lodestonehq/lodestone-ui:v0.1.0
depends_on:
elasticsearch:
condition: service_healthy
storage:
condition: service_healthy
ports:
- 80:3000
environment:
- LS_STORAGE_HOST=${LS_STORAGE_HOST:-storage}
- LS_STORAGE_PORT=${LS_STORAGE_PORT:-9000}
- LS_STORAGE_PATH=${LS_STORAGE_PATH:-/storage/}
- LS_ELASTICSEARCH_HOST=${LS_ELASTICSEARCH_HOST:-elasticsearch}
- LS_ELASTICSEARCH_PORT=${LS_ELASTICSEARCH_PORT:-9200}
- LS_RABBITMQ_HOST=${LS_RABBITMQ_HOST:-rabbitmq}
- LS_RABBITMQ_PORT=${LS_RABBITMQ_PORT:-5672}
- LS_RABBITMQ_MG_HOST=${LS_RABBITMQ_MG_HOST:-rabbitmq}
- LS_RABBITMQ_MG_PORT=${LS_RABBITMQ_MG_PORT:-15672}
- MINIO_ACCESS_KEY=minio
- MINIO_SECRET_KEY=minio123
- RABBITMQ_USER=lodestone
- RABBITMQ_PASS=lodestone
fs_publisher:
image: lodestonehq/lodestone-fs-publisher:v0.1.0
depends_on:
rabbitmq:
condition: service_healthy
command:
- /lodestone-fs-publisher
- start
- --amqp-url=amqp://lodestone:lodestone@rabbitmq:5672
- --dir=/data
- --bucket=documents
volumes:
- ./data/storage/documents:/data
# E-mail publisher is currently WIP.
# email_publisher:
# image: lodestonehq/lodestone-email-publisher:latest
# depends_on:
# rabbitmq:
# condition: service_healthy
# webapp:
# condition: service_healthy
# command:
# - /lodestone-email-publisher
# - start
# - --amqp-url=amqp://lodestone:lodestone@rabbitmq:5672
# - --api-endpoint=http://webapp:3000
# - --bucket=documents
# - --imap-hostname=imap.gmail.com
# - --imap-password=xxxxxxxxxxxxxx
storage:
image: minio/minio:latest
depends_on:
rabbitmq:
condition: service_healthy
volumes:
- ./data/storage:/data
command:
- minio
- server
- /data
environment:
# - MINIO_BROWSER=off
- MINIO_ACCESS_KEY=minio
- MINIO_SECRET_KEY=minio123
- MINIO_NOTIFY_AMQP_ENABLE=on
- MINIO_NOTIFY_AMQP_URL=amqp://lodestone:lodestone@rabbitmq:5672
- MINIO_NOTIFY_AMQP_EXCHANGE=lodestone
- MINIO_NOTIFY_AMQP_EXCHANGE_TYPE=fanout
- MINIO_NOTIFY_AMQP_ROUTING_KEY=storagelogs
- MINIO_NOTIFY_AMQP_MANDATORY=off
- MINIO_NOTIFY_AMQP_AUTO_DELETED=off
- MINIO_NOTIFY_AMQP_DELIVERY_MODE=0
healthcheck:
test: ["CMD", "curl", "--silent", "-f", "http://localhost:9000/minio/health/ready"]
interval: 5s
timeout: 25s
retries: 5
start_period: 2s
rabbitmq:
image: lodestonehq/lodestone-rabbitmq:v0.1.0
environment:
- RABBITMQ_DEFAULT_USER=lodestone
- RABBITMQ_DEFAULT_PASS=lodestone
tika:
image: lodestonehq/lodestone-tika:v0.1.0