generated from rohberg/volto-addon-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
117 lines (108 loc) · 3.01 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
# *****************
# OBSOLETE
# Merged with docker-compose for backend and frontend
# *********************
# opensearch needs sysctl -w vm.max_map_count=262144
# see https://stackoverflow.com/questions/66444027/max-virtual-memory-areas-vm-max-map-count-65530-is-too-low-increase-to-at-lea
version: '3'
services:
ingest:
image: ghcr.io/collective/collective.elastic.ingest:latest
environment:
MAPPINGS_FILE: ${MAPPINGS_FILE}
ANALYSIS_FILE: ${ANALYSIS_FILE}
PREPROCESSINGS_FILE: ${PREPROCESSINGS_FILE}
INDEX_SERVER: ${INDEX_SERVER?unset}
INDEX_USE_SSL: ${INDEX_USE_SSL?unset}
INDEX_OPENSEARCH: ${INDEX_OPENSEARCH?unset}
INDEX_LOGIN: ${INDEX_LOGIN?unset}
INDEX_PASSWORD: ${INDEX_PASSWORD?unset}
CELERY_BROKER: ${CELERY_BROKER?unset}
CELERY_CONCURRENCY: ${CELERY_CONCURRENCY:-1}
CELEREY_LOG_LEVEL: ${CELERY_LOG_LEVEL:-info}
PLONE_SERVICE: ${PLONE_SERVICE?unset}
PLONE_SITE_PREFIX_PATH: ${PLONE_SITE_PREFIX_PATH?unset}
PLONE_USER: ${PLONE_USER?unset}
PLONE_PASSWORD: ${PLONE_PASSWORD?unset}
SENTRY_DSN: ${SENTRY_DSN}
volumes:
- ingest-configuration:/configuration
networks:
- opensearch-net
redis:
image: 'redis:latest'
networks:
- opensearch-net
ports:
- 6379:6379
opensearch:
build:
context: ../
dockerfile: ./docker-opensearch/Dockerfile.opensearch
# args:
# ADDON_NAME: "${ADDON_NAME}"
# ADDON_PATH: "${ADDON_PATH}"
# VOLTO_VERSION: ${VOLTO_VERSION:-17}
environment:
- cluster.name=opensearch-cluster
- node.name=opensearch
- discovery.type=single-node
- bootstrap.memory_lock=true
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx2g"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
volumes:
- opensearch-data:/usr/share/opensearch/data
- "./opensearch-configuration/keywords.txt:/usr/share/opensearch/config/keywords.txt"
- "./opensearch-configuration/lexicon.txt:/usr/share/opensearch/config/lexicon.txt"
ports:
- 9200:9200 # REST API
- 9600:9600 # Performance Analyzer
networks:
- opensearch-net
tty: true
profiles:
- dev
- prod
opensearch-dashboards:
image: opensearchproject/opensearch-dashboards:latest
ports:
- 5601:5601
expose:
- "5601"
environment:
OPENSEARCH_HOSTS: '["http://opensearch:9200"]'
networks:
- opensearch-net
profiles:
- dev
# dejavu:
# image: appbaseio/dejavu:latest
# container_name: dejavu
# ports:
# - "1358:1358"
# expose:
# - "1358"
# links:
# - opensearch
volumes:
opensearch-data:
ingest-configuration:
driver: local
driver_opts:
type: none
device: ./ingest-configuration
o: bind
# opensearch-configuration:
# driver: local
# driver_opts:
# type: none
# device: ./opensearch-configuration
# o: bind
networks:
opensearch-net: