-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.yml
117 lines (117 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
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
services:
nuxeo:
build:
context: .
dockerfile: build_nuxeo/Dockerfile
args:
- "INSTALL_RPM=${INSTALL_RPM}"
- "CONNECT_URL=${CONNECT_URL}"
- "NUXEO_CLID=${NUXEO_CLID}"
- "BUILD_PACKAGES=${BUILD_PACKAGES}"
- "NUXEO_IMAGE=${NUXEO_IMAGE}"
env_file:
- ./.env
image: presales-nuxeo-${PROJECT_NAME}
hostname: nuxeo
restart: unless-stopped
depends_on:
- mongo
- opensearch
expose:
# Webservice Port
- 8080
# Port for Debugging (JPDA)
- 8787
# JMX port
- 1089
ports:
- "${NUXEO_PORT}:8080"
- "8787:8787"
- "1089:1089"
volumes:
- ./init:/docker-entrypoint-initnuxeo.d/:rw
- ./conf:/etc/nuxeo/conf.d/:ro
- /var/run/docker.sock:/var/run/docker.sock:rw
- /usr/bin/docker:/usr/bin/docker:ro
- nuxeo-data:/var/lib/nuxeo:rw
# Install custom packages from local directory
# - "./nuxeo_packages:/opt/nuxeo/packages"
mongo:
image: mongo:${MONGO_VERSION}
hostname: mongo
restart: unless-stopped
healthcheck:
test: echo 'db.stats().ok' | mongo mongo:27017/test --quiet
interval: 1m
timeout: 30s
retries: 10
start_period: 15s
expose:
# Mongo connection
- 27017
# Uncomment the following block if you require host-level access to MongoDB
#ports:
# - "27017:27017"
volumes:
- mongo-data:/data/db
opensearch:
build:
context: .
dockerfile: build_opensearch/Dockerfile
args:
- "OPENSEARCH_IMAGE=${OPENSEARCH_IMAGE}"
env_file:
- ./.env
image: presales-opensearch-${PROJECT_NAME}
hostname: opensearch
restart: unless-stopped
healthcheck:
test: curl -f http://opensearch:9200/
interval: 2m
timeout: 30s
retries: 10
start_period: 1m
environment:
- discovery.type=single-node
- cluster.name=opensearch
- bootstrap.memory_lock=true
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m"
- "DISABLE_SECURITY_PLUGIN=true"
expose:
- 9200
- 9300
# Uncomment the following block if you require host-level access to ElasticSearch
#ports:
# - 9200:9200
# - 9300:9300
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- opensearch-data:/usr/share/opensearch/data
dashboards:
image: ${OPENSEARCH_DASHBOARDS_IMAGE}
hostname: dashboards
restart: unless-stopped
healthcheck:
test: curl -f http://dashboards:5601/dashboards
interval: 2m
timeout: 30s
retries: 10
start_period: 2m
depends_on:
- opensearch
environment:
OPENSEARCH_HOSTS: http://opensearch:9200/
DISABLE_SECURITY_DASHBOARDS_PLUGIN: 'true'
SERVER_BASEPATH: /dashboards
SERVER_REWRITEBASEPATH: 'true'
expose:
- 5601
ports:
- "5601:5601"
volumes:
nuxeo-data:
opensearch-data:
mongo-data: