-
Notifications
You must be signed in to change notification settings - Fork 224
/
docker-compose.yml
169 lines (159 loc) · 7.57 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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
# Copyright (c) 2019 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License 2.0 which is available at
# http://www.eclipse.org/legal/epl-2.0
#
# SPDX-License-Identifier: EPL-2.0
version: '2.4'
services:
mongodb:
image: docker.io/mongo:4.2
mem_limit: 256m
restart: always
networks:
default:
aliases:
- mongodb
command: mongod --storageEngine wiredTiger --noscripting
volumes:
- "/opt/docker-volumes/mongo-data:/data/db"
environment:
TZ: Europe/Berlin
policies:
image: docker.io/eclipse/ditto-policies:${DITTO_VERSION:-latest}
mem_limit: 512m
restart: always
networks:
default:
aliases:
- ditto-cluster
environment:
- TZ=Europe/Berlin
- BIND_HOSTNAME=0.0.0.0
- JAVA_TOOL_OPTIONS=-XX:+ExitOnOutOfMemoryError -XX:+UseContainerSupport -XX:+UseStringDeduplication -Xss512k -XX:MaxRAMPercentage=50 -XX:+UseG1GC -XX:MaxGCPauseMillis=150 -Dakka.coordinated-shutdown.exit-jvm=on -Dakka.cluster.shutdown-after-unsuccessful-join-seed-nodes=180s -Dakka.cluster.failure-detector.threshold=15.0 -Dakka.cluster.failure-detector.expected-response-after=10s -Dakka.cluster.failure-detector.acceptable-heartbeat-pause=20s
- MONGO_DB_HOSTNAME=mongodb
things:
image: docker.io/eclipse/ditto-things:${DITTO_VERSION:-latest}
mem_limit: 512m
restart: always
networks:
default:
aliases:
- ditto-cluster
depends_on:
- policies
environment:
- TZ=Europe/Berlin
- BIND_HOSTNAME=0.0.0.0
- DITTO_DEVOPS_FEATURE_WOT_INTEGRATION_ENABLED=true
- THINGS_WOT_TO_THING_DESCRIPTION_BASE_PREFIX=https://ditto.eclipseprojects.io
- JAVA_TOOL_OPTIONS=-XX:+ExitOnOutOfMemoryError -XX:+UseContainerSupport -XX:+UseStringDeduplication -Xss512k -XX:MaxRAMPercentage=50 -XX:+UseG1GC -XX:MaxGCPauseMillis=150 -Dakka.coordinated-shutdown.exit-jvm=on -Dakka.cluster.shutdown-after-unsuccessful-join-seed-nodes=180s -Dakka.cluster.failure-detector.threshold=15.0 -Dakka.cluster.failure-detector.expected-response-after=10s -Dakka.cluster.failure-detector.acceptable-heartbeat-pause=20s
- MONGO_DB_HOSTNAME=mongodb
things-search:
image: docker.io/eclipse/ditto-things-search:${DITTO_VERSION:-latest}
mem_limit: 512m
restart: always
networks:
default:
aliases:
- ditto-cluster
depends_on:
- policies
environment:
- TZ=Europe/Berlin
- BIND_HOSTNAME=0.0.0.0
- JAVA_TOOL_OPTIONS=-XX:+ExitOnOutOfMemoryError -XX:+UseContainerSupport -XX:+UseStringDeduplication -Xss512k -XX:MaxRAMPercentage=50 -XX:+UseG1GC -XX:MaxGCPauseMillis=150 -Dakka.coordinated-shutdown.exit-jvm=on -Dakka.cluster.shutdown-after-unsuccessful-join-seed-nodes=180s -Dakka.cluster.failure-detector.threshold=15.0 -Dakka.cluster.failure-detector.expected-response-after=10s -Dakka.cluster.failure-detector.acceptable-heartbeat-pause=20s
- MONGO_DB_HOSTNAME=mongodb
concierge:
image: docker.io/eclipse/ditto-concierge:${DITTO_VERSION:-latest}
mem_limit: 512m
restart: always
networks:
default:
aliases:
- ditto-cluster
depends_on:
- policies
environment:
- TZ=Europe/Berlin
- BIND_HOSTNAME=0.0.0.0
- DITTO_DEVOPS_FEATURE_WOT_INTEGRATION_ENABLED=true
- JAVA_TOOL_OPTIONS=-XX:+ExitOnOutOfMemoryError -XX:+UseContainerSupport -XX:+UseStringDeduplication -Xss512k -XX:MaxRAMPercentage=50 -XX:+UseG1GC -XX:MaxGCPauseMillis=150 -Dakka.coordinated-shutdown.exit-jvm=on -Dakka.cluster.shutdown-after-unsuccessful-join-seed-nodes=180s -Dakka.cluster.failure-detector.threshold=15.0 -Dakka.cluster.failure-detector.expected-response-after=10s -Dakka.cluster.failure-detector.acceptable-heartbeat-pause=20s
- MONGO_DB_HOSTNAME=mongodb
connectivity:
image: docker.io/eclipse/ditto-connectivity:${DITTO_VERSION:-latest}
mem_limit: 768m
restart: always
networks:
default:
aliases:
- ditto-cluster
depends_on:
- policies
- concierge
environment:
- TZ=Europe/Berlin
- BIND_HOSTNAME=0.0.0.0
- DITTO_DEVOPS_FEATURE_WOT_INTEGRATION_ENABLED=true
# if connections to rabbitmq broker are used, you might want to disable ExitOnOutOfMemoryError, because the amqp-client has a bug throwing OOM exceptions and causing a restart loop
- JAVA_TOOL_OPTIONS=-XX:+ExitOnOutOfMemoryError -XX:+UseContainerSupport -XX:+UseStringDeduplication -Xss512k -XX:MaxRAMPercentage=50 -XX:+UseG1GC -XX:MaxGCPauseMillis=150 -Dakka.coordinated-shutdown.exit-jvm=on -Dakka.cluster.shutdown-after-unsuccessful-join-seed-nodes=180s -Dakka.cluster.failure-detector.threshold=15.0 -Dakka.cluster.failure-detector.expected-response-after=10s -Dakka.cluster.failure-detector.acceptable-heartbeat-pause=20s
- MONGO_DB_HOSTNAME=mongodb
gateway:
image: docker.io/eclipse/ditto-gateway:${DITTO_VERSION:-latest}
mem_limit: 512m
restart: always
networks:
default:
aliases:
- ditto-cluster
depends_on:
- policies
- concierge
environment:
- TZ=Europe/Berlin
- BIND_HOSTNAME=0.0.0.0
- ENABLE_PRE_AUTHENTICATION=true
- DEVOPS_SECURE_STATUS=false
- DITTO_DEVOPS_FEATURE_WOT_INTEGRATION_ENABLED=true
- JAVA_TOOL_OPTIONS=-XX:+ExitOnOutOfMemoryError -XX:+UseContainerSupport -XX:+UseStringDeduplication -Xss512k -XX:MaxRAMPercentage=50 -XX:+UseG1GC -XX:MaxGCPauseMillis=150 -Dakka.coordinated-shutdown.exit-jvm=on -Dakka.cluster.shutdown-after-unsuccessful-join-seed-nodes=180s -Dakka.cluster.failure-detector.threshold=15.0 -Dakka.cluster.failure-detector.expected-response-after=10s -Dakka.cluster.failure-detector.acceptable-heartbeat-pause=20s
swagger-ui:
image: docker.io/swaggerapi/swagger-ui:v3.38.0
mem_limit: 32m
restart: always
volumes:
- ../../../documentation/src/main/resources/openapi:/usr/share/nginx/html/openapi:ro
- ../../../documentation/src/main/resources/images:/usr/share/nginx/html/images:ro
- ../swagger3-index.html:/usr/share/nginx/html/index.html:ro
command: nginx -g 'daemon off;'
# node-red:
# image: docker.io/nodered/node-red-docker:latest
# volumes:
# - /opt/docker-volumes/nodered-data:/data:rw
# - ./nodered/settings.js:/data/settings.js:ro
# - ./nodered/package.json:/data/package.json:rw
# - ./nodered/flows-ditto.json:/data/flows-ditto.json:rw
nginx:
image: docker.io/nginx:1.13-alpine
mem_limit: 32m
restart: always
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx.htpasswd:/etc/nginx/nginx.htpasswd:ro
- ./nginx-devops.htpasswd:/etc/nginx/nginx-devops.htpasswd:ro
- ./html:/etc/nginx/html
- ../nginx-cors.conf:/etc/nginx/nginx-cors.conf:ro
- ../../../documentation/src/main/resources/images:/etc/nginx/html/images:ro
- /opt/letsencrypt/src/letsencrypt/letsencrypt-site/.well-known:/etc/nginx/html/.well-known:ro
- /opt/letsencrypt/src/production/dh-param/dhparam-2048.pem:/etc/ssl/certs/dhparam-2048.pem
- /opt/docker-volumes/etc/letsencrypt/live/ditto.eclipseprojects.io/fullchain.pem:/etc/letsencrypt/live/ditto.eclipseprojects.io/fullchain.pem
- /opt/docker-volumes/etc/letsencrypt/live/ditto.eclipseprojects.io/privkey.pem:/etc/letsencrypt/live/ditto.eclipseprojects.io/privkey.pem
ports:
- "80:80"
- "443:443"
depends_on:
- gateway
- swagger-ui