/
docker-compose.yml
executable file
·141 lines (132 loc) · 3.5 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
version: '2.4'
services:
mongodb:
image: docker.io/mongo:3.4
networks:
default:
aliases:
- mongodb
command: mongod --storageEngine wiredTiger --noscripting
user: mongodb
environment:
TZ: Europe/Berlin
policies:
init: true
image: docker.io/eclipse/ditto-policies:${DITTO_VERSION:-latest}
mem_limit: 256m
networks:
default:
aliases:
- ditto-cluster
environment:
- TZ=Europe/Berlin
- INSTANCE_INDEX=1
- BIND_HOSTNAME=0.0.0.0
- IBM_JAVA_OPTIONS=-XX:+ExitOnOutOfMemoryError
- REMOTING_IDLE_CPU_LEVEL=1
things:
init: true
image: docker.io/eclipse/ditto-things:${DITTO_VERSION:-latest}
mem_limit: 256m
networks:
default:
aliases:
- ditto-cluster
depends_on:
- policies
environment:
- TZ=Europe/Berlin
- INSTANCE_INDEX=1
- BIND_HOSTNAME=0.0.0.0
- IBM_JAVA_OPTIONS=-XX:+ExitOnOutOfMemoryError
- REMOTING_IDLE_CPU_LEVEL=1
things-search:
init: true
image: docker.io/eclipse/ditto-things-search:${DITTO_VERSION:-latest}
mem_limit: 384m
networks:
default:
aliases:
- ditto-cluster
depends_on:
- policies
environment:
- TZ=Europe/Berlin
- INSTANCE_INDEX=1
- BIND_HOSTNAME=0.0.0.0
- IBM_JAVA_OPTIONS=-XX:+ExitOnOutOfMemoryError
- REMOTING_IDLE_CPU_LEVEL=1
concierge:
init: true
image: docker.io/eclipse/ditto-concierge:${DITTO_VERSION:-latest}
mem_limit: 256m
networks:
default:
aliases:
- ditto-cluster
depends_on:
- policies
environment:
- TZ=Europe/Berlin
- INSTANCE_INDEX=1
- BIND_HOSTNAME=0.0.0.0
- IBM_JAVA_OPTIONS=-XX:+ExitOnOutOfMemoryError
- REMOTING_IDLE_CPU_LEVEL=1
connectivity:
init: true
image: docker.io/eclipse/ditto-connectivity:${DITTO_VERSION:-latest}
mem_limit: 256m
networks:
default:
aliases:
- ditto-cluster
depends_on:
- policies
- concierge
environment:
- TZ=Europe/Berlin
- INSTANCE_INDEX=1
- BIND_HOSTNAME=0.0.0.0
- IBM_JAVA_OPTIONS=-XX:+ExitOnOutOfMemoryError
- REMOTING_IDLE_CPU_LEVEL=1
gateway:
init: true
image: docker.io/eclipse/ditto-gateway:${DITTO_VERSION:-latest}
mem_limit: 256m
networks:
default:
aliases:
- ditto-cluster
depends_on:
- policies
- concierge
ports:
- "8081:8080"
environment:
- TZ=Europe/Berlin
- INSTANCE_INDEX=1
- BIND_HOSTNAME=0.0.0.0
- REMOTING_IDLE_CPU_LEVEL=1
- ENABLE_DUMMY_AUTH=true
- IBM_JAVA_OPTIONS=-XX:+ExitOnOutOfMemoryError
swagger-ui:
image: docker.io/swaggerapi/swagger-ui:v2.2.9
volumes:
- ../../documentation/src/main/resources/openapi:/usr/share/nginx/html/openapi:ro
- ../../documentation/src/main/resources/images:/usr/share/nginx/html/images:ro
- ./swagger-index.html:/usr/share/nginx/html/index.html:ro
environment:
- API_URL=/apidoc/openapi/ditto-api-1.yml
nginx:
image: docker.io/nginx:1.13-alpine
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx.htpasswd:/etc/nginx/nginx.htpasswd:ro
- ./nginx-cors.conf:/etc/nginx/nginx-cors.conf:ro
- ./index.html:/etc/nginx/html/index.html:ro
- ../../documentation/src/main/resources/images:/etc/nginx/html/images:ro
ports:
- "8080:80"
depends_on:
- gateway
- swagger-ui