-
Notifications
You must be signed in to change notification settings - Fork 18
/
docker-compose.yml
203 lines (188 loc) · 5.44 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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
version: "3.8"
volumes:
rabbitmq_data: # volume for rabbitmq data, so it doesn't create an anonymous one on each container
geonetwork:
esdata:
pgdata:
networks:
gn-cloud-network:
driver: bridge
services:
# include the required legacy geonetwork as a service, and its service dependencies for database and elasticsearch
# Rationale is to lower the barrier for developers to get started with this project, and to have the indexing-service
# services dependencies in the same network
geonetwork:
image: geonetwork:4.4.6
restart: always
ports:
- 8080:8080
environment:
DATA_DIR: /catalogue-data
JAVA_OPTIONS: >
-Dorg.eclipse.jetty.annotations.AnnotationParser.LEVEL=OFF
-Djava.security.egd=file:/dev/./urandom -Djava.awt.headless=true
-Xms512M -Xss512M -Xmx2G -XX:+UseConcMarkSweepGC
-Dgeonetwork.resources.dir=/catalogue-data/resources
-Dgeonetwork.data.dir=/catalogue-data
-Dgeonetwork.codeList.dir=/var/lib/jetty/webapps/geonetwork/WEB-INF/data/config/codelist
-Dgeonetwork.schema.dir=/var/lib/jetty/webapps/geonetwork/WEB-INF/data/config/schema_plugins
ES_HOST: elasticsearch
ES_PROTOCOL: http
ES_PORT: 9200
KB_URL: http://kibana:5601
GEONETWORK_DB_TYPE: postgres
GEONETWORK_DB_HOST: database
GEONETWORK_DB_PORT: 5432
GEONETWORK_DB_NAME: geonetwork
GEONETWORK_DB_USERNAME: geonetwork
GEONETWORK_DB_PASSWORD: geonetwork
volumes:
- geonetwork:/catalogue-data
depends_on:
- kibana
- elasticsearch
- database
networks:
- gn-cloud-network
elasticsearch:
image: elasticsearch:8.14.3
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
environment:
ES_JAVA_OPTS: "-Xms1G -Xmx1G"
discovery.type: single-node
volumes:
- esdata:/usr/share/elasticsearch/data
networks:
- gn-cloud-network
ports:
- "9200:9200"
kibana:
image: kibana:8.14.3
environment:
SERVER_NAME: 'kibana'
ELASTICSEARCH_URL: http://elasticsearch:9200/
SERVER_BASEPATH: /geonetwork/dashboards
SERVER_REWRITEBASEPATH: 'false'
KIBANA_INDEX: .dashboards
XPACK_MONITORING_UI_CONTAINER_ELASTICSEARCH_ENABLED: 'true'
networks:
- gn-cloud-network
database:
image: mdillon/postgis
environment:
POSTGRES_USER: "${MDDB_USERNAME}"
POSTGRES_PASSWORD: "${MDDB_PASSWORD}"
POSTGRES_DB: "${MDDB_DBNAME}"
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- gn-cloud-network
ports:
# expose for local profile without overlapping with a running default postgres port in the host
- "55432:5432"
# Event broker for spring-cloud-bus event messaging
rabbitmq:
image: rabbitmq:3-management
restart: always
environment:
RABBITMQ_DEFAULT_USER: "guest"
RABBITMQ_DEFAULT_PASS: "guest"
volumes:
- rabbitmq_data:/var/lib/rabbitmq
networks:
- gn-cloud-network
ports:
- "5672:5672"
- "15672:15672"
# Eureka service discovery. This is a Discovery First Bootstrap configuration.
# The discovery service is the only fixed entry point.
# Browse to http://localhost:8761 to check all services are registered.
discovery:
image: gn-cloud-discovery:${TAG}
environment:
SERVER_PORT: 8761
EUREKA_INSTANCE_HOSTNAME: discovery
ports:
- 8761:8761 # for development, so services can be run from localhost and find the discovery service running on docker
networks:
- gn-cloud-network
# healthcheck:
# test: ["CMD", "curl", "-f", "-m", "1", "http://localhost:8761/actuator/health"]
# interval: 1s
# timeout: 1s
# retries: 15
# Spring Cloud Config service, provides centralized configuration to all
# microservices. Being a Discovery First Bootstrap configuration, it'll
# register itself with the Eureka discovery service and can be scaled
config:
image: gn-cloud-configuring:${TAG}
depends_on:
- discovery
environment:
EUREKA_SERVER_URL: ${EUREKA_SERVER_URL}
RABBITMQ_HOST: rabbitmq
CONFIG_PATH: ./config
networks:
- gn-cloud-network
volumes:
- ./config:/workspace/config
ports:
- 9999:8080
auth:
image: gn-cloud-authorizing:${TAG}
depends_on:
- config
- rabbitmq
environment:
EUREKA_SERVER_URL: ${EUREKA_SERVER_URL}
RABBITMQ_HOST: rabbitmq
networks:
- gn-cloud-network
gateway:
image: gn-cloud-gateway:${TAG}
depends_on:
- config
- rabbitmq
environment:
EUREKA_SERVER_URL: ${EUREKA_SERVER_URL}
RABBITMQ_HOST: rabbitmq
networks:
- gn-cloud-network
ports:
- 9900:8080
search:
image: gn-cloud-searching:${TAG}
depends_on:
- config
- rabbitmq
environment:
EUREKA_SERVER_URL: ${EUREKA_SERVER_URL}
RABBITMQ_HOST: rabbitmq
networks:
- gn-cloud-network
index:
image: gn-cloud-indexing:${TAG}
depends_on:
- config
- rabbitmq
environment:
EUREKA_SERVER_URL: ${EUREKA_SERVER_URL}
RABBITMQ_HOST: rabbitmq
networks:
- gn-cloud-network
ogc-records:
image: gn-cloud-ogc-api-records-service:${TAG}
depends_on:
- config
- rabbitmq
environment:
EUREKA_SERVER_URL: ${EUREKA_SERVER_URL}
RABBITMQ_HOST: rabbitmq
networks:
- gn-cloud-network