-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
162 lines (152 loc) · 9.27 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
volumes:
esdata:
nginxlog:
apachelog:
ogcapiconfig:
services:
geonetwork:
image: geonetwork:4.2.9
restart: unless-stopped
container_name: geonetwork
ports:
- 8080:8080
user: 0:0
logging:
driver: "json-file"
options:
max-size: "250m"
environment:
DATA_DIR: /catalogue-data
JAVA_OPTS:
-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
-Dorg.eclipse.jetty.server.Request.maxFormContentSize=500000
-Dorg.eclipse.jetty.server.Request.maxFormKeys=8000
-Dgeonetwork.ESFeaturesProxy.username=${ES_USERNAME}
-Dgeonetwork.ESFeaturesProxy.password=${ES_PASSWORD}
ES_HOST: ${ES_HOST}
ES_PROTOCOL: ${ES_PROTOCOL}
ES_PORT: ${ES_PORT}
ES_USERNAME: ${ES_USERNAME}
ES_PASSWORD: ${ES_PASSWORD}
KB_URL: ${KB_URL}
GEONETWORK_DB_TYPE: postgres
GEONETWORK_DB_HOST: ${POSTGRES_DB_HOST}
GEONETWORK_DB_PORT: ${POSTGRES_DB_PORT}
GEONETWORK_DB_NAME: ${POSTGRES_DB_NAME}
GEONETWORK_DB_POOL_MAXACTIVE: ${POSTGRES_DB_MAXACTIVE}
GEONETWORK_DB_USERNAME: ${POSTGRES_DB_USERNAME}
GEONETWORK_DB_PASSWORD: ${POSTGRES_DB_PASSWORD}
GEONETWORK_MICROSERVICESPROXY_TARGETURI: http://ogc-api-records-service:8080
volumes:
### General overrides ###
- /data/geonetwork:/catalogue-data
- ./thesauri/external/theme:/var/lib/jetty/webapps/geonetwork/WEB-INF/data/config/codelist/external/thesauri/theme
- ./thesauri/external/place:/var/lib/jetty/webapps/geonetwork/WEB-INF/data/config/codelist/external/thesauri/place
- ./thesauri/local/theme:/var/lib/jetty/webapps/geonetwork/WEB-INF/data/config/codelist/local/thesauri/theme
- ./thesauri/local/place:/var/lib/jetty/webapps/geonetwork/WEB-INF/data/config/codelist/local/thesauri/place
- ./elasticsearch/records.json:/var/lib/jetty/webapps/geonetwork/WEB-INF/data/config/index/records.json
### UI overrides ###
# Style changes (*.less / *.css files)
- ./geonetwork/catalog/views/default/less/gn_editor_default.less:/var/lib/jetty/webapps/geonetwork/catalog/views/default/less/gn_editor_default.less
- ./geonetwork/catalog/views/default/less/gn_search_default.less:/var/lib/jetty/webapps/geonetwork/catalog/views/default/less/gn_search_default.less
- ./geonetwork/catalog/style/gn_metadata.less:/var/lib/jetty/webapps/geonetwork/catalog/style/gn_metadata.less
# Layout changes (*.html files)
- ./geonetwork/catalog/views/default/templates/recordView/technical.html:/var/lib/jetty/webapps/geonetwork/catalog/views/default/templates/recordView/technical.html
- ./geonetwork/catalog/templates/admin/usergroup/users.html:/var/lib/jetty/webapps/geonetwork/catalog/templates/admin/usergroup/users.html
- ./geonetwork/catalog/components/edit/datepicker/partials/datepicker.html:/var/lib/jetty/webapps/geonetwork/catalog/components/edit/datepicker/partials/datepicker.html
#- ./geonetwork/catalog/views/default/templates/home.html:/var/lib/jetty/webapps/geonetwork/catalog/views/default/templates/home.html
- ./geonetwork/catalog/components/utility/partials/recordOriginLogo.html:/var/lib/jetty/webapps/geonetwork/catalog/components/utility/partials/recordOriginLogo.html
- ./geonetwork/catalog/views/default/templates/recordView/metadata.html:/var/lib/jetty/webapps/geonetwork/catalog/views/default/templates/recordView/metadata.html
# Functionality changes (*.js files)
- ./geonetwork/catalog/js/admin/DashboardController.js:/var/lib/jetty/webapps/geonetwork/catalog/js/admin/DashboardController.js
- ./geonetwork/catalog/components/utility/UtilityDirective.js:/var/lib/jetty/webapps/geonetwork/catalog/components/utility/UtilityDirective.js
- ./geonetwork/catalog/components/common/needhelp/NeedHelpDirective.js:/var/lib/jetty/webapps/geonetwork/catalog/components/common/needhelp/NeedHelpDirective.js
### Schema overrides ###
# data quality snippets
- ../geonetwork-snippets/gemini23-index-fields/index-subtemplate.xsl:/var/lib/jetty/webapps/geonetwork/WEB-INF/data/config/schema_plugins/iso19139.gemini23/index-fields/index-subtemplate.xsl
- ../geonetwork-snippets/iso19139-index-fields/index-subtemplate.xsl:/var/lib/jetty/webapps/geonetwork/WEB-INF/data/config/schema_plugins/iso19139/index-fields/index-subtemplate.xsl
# gemini 2.3
- ../iso19139.gemini23/src/main/plugin/iso19139.gemini23:/var/lib/jetty/webapps/geonetwork/WEB-INF/data/config/schema_plugins/iso19139.gemini23
- ../iso19139.gemini23/src/main/config/translations/en-schema-iso19139.gemini23.json:/var/lib/jetty/webapps/geonetwork/catalog/locales/en-schema-iso19139.gemini23.json
- ../iso19139.gemini23/target/schema-iso19139.gemini23-4.2.2-SNAPSHOT.jar:/var/lib/jetty/webapps/geonetwork/WEB-INF/lib/gn-schema-iso19139.gemini23-4.2.2-SNAPSHOT.jar
# gemini 2.2
- ../iso19139.gemini22/src/main/plugin/iso19139.gemini22:/var/lib/jetty/webapps/geonetwork/WEB-INF/data/config/schema_plugins/iso19139.gemini22
- ../iso19139.gemini22/src/main/config/translations/en-schema-iso19139.gemini22.json:/var/lib/jetty/webapps/geonetwork/catalog/locales/en-schema-iso19139.gemini22.json
- ../iso19139.gemini22/target/schema-iso19139.gemini22-4.2.2-SNAPSHOT.jar:/var/lib/jetty/webapps/geonetwork/WEB-INF/lib/gn-schema-iso19139.gemini22-4.2.2-SNAPSHOT.jar
- ../iso19139.gemini22/src/main/plugin/iso19139.gemini22/process/xml_gemini22gemini23-schemaupgrade.xsl:/var/lib/jetty/webapps/geonetwork/WEB-INF/data/config/schema_plugins/iso19139/process/xml_gemini22gemini23-schemaupgrade.xsl
# iso19139
- ./geonetwork/WEB-INF/data/config/schema_plugins/iso19139/index-fields/default.xsl:/var/lib/jetty/webapps/geonetwork/WEB-INF/data/config/schema_plugins/iso19139/index-fields/default.xsl
- ./geonetwork/WEB-INF/data/config/schema_plugins/iso19139/layout/tpl-rdf.xsl:/var/lib/jetty/webapps/geonetwork/WEB-INF/data/config/schema_plugins/iso19139/layout/tpl-rdf.xsl
- ./geonetwork/WEB-INF/data/config/schema_plugins/iso19139/loc/eng/labels.xml:/var/lib/jetty/webapps/geonetwork/WEB-INF/data/config/schema_plugins/iso19139/loc/eng/labels.xml
healthcheck:
test: ["CMD-SHELL", "curl -X GET http://localhost:8080/geonetwork/srv/api/site -H \"accept: application/json\" || exit 1"]
interval: 1m
timeout: 10s
retries: 3
networks:
- esnet
ogc-api-records-service:
image: geonetwork/gn-cloud-ogc-api-records-service:4.2.9-0
container_name: ogc-api-service
environment:
SPRING_PROFILES_ACTIVE: standalone
SPRING_DATASOURCE_URL: jdbc:postgresql://${POSTGRES_DB_HOST}:${POSTGRES_DB_PORT}/${POSTGRES_DB_NAME}
SPRING_DATASOURCE_USERNAME: ${POSTGRES_DB_USERNAME}
SPRING_DATASOURCE_PASSWORD: ${POSTGRES_DB_PASSWORD}
SPRING_CONFIG_LOCATION: /ogcapiconfig/
GN_BASEURL: ${GN_PROTOCOL}://${GN_URL}/geonetwork/api
GN_LEGACY_URL: ${GN_PROTOCOL}://${GN_URL}/geonetwork
GN_INDEX_URL: ${ES_URL}
SERVER_FORWARDHEADERSSTRATEGY: FRAMEWORK
ES_USERNAME: ${ES_USERNAME}
ES_PASSWORD: ${ES_PASSWORD}
restart: unless-stopped
volumes:
- ogcapiconfig:/ogcapiconfig
- ./ogc-api/application.yml:/ogcapiconfig/application.yml
- ./ogc-api/bootstrap.yml:/ogcapiconfig/bootstrap.yml
- ./ogc-api/copy/copy-iso19139.gemini23.xsl:/workspace/BOOT-INF/classes/xslt/ogcapir/formats/copy/copy-iso19139.gemini23.xsl
- ./ogc-api/copy/copy-iso19139.gemini22.xsl:/workspace/BOOT-INF/classes/xslt/ogcapir/formats/copy/copy-iso19139.gemini22.xsl
- ./ogc-api/src/main/resources/xslt/ogcapir/landingpage.xsl:/workspace/BOOT-INF/classes/xslt/ogcapir/landingpage.xsl
- ./ogc-api/src/main/resources/xslt/ogcapir/collections.xsl:/workspace/BOOT-INF/classes/xslt/ogcapir/collections.xsl
- ./ogc-api/src/main/resources/xslt/ogcapir/collection.xsl:/workspace/BOOT-INF/classes/xslt/ogcapir/collection.xsl
networks:
- esnet
nginx:
image: nginx
container_name: nginx
volumes:
- ./nginx/default.local:/etc/nginx/conf.d/default.conf
- ./nginx/servers:/etc/nginx/servers
- ./nginx/locations:/etc/nginx/locations
# commented out until we're ready to go live
- ./nginx/sites-available:/etc/nginx/sites-available
- ./nginx/root/robots.txt:/var/www/html/robots.txt
- ./nginx/root/files:/var/www/html/files
- ../geonetwork-data/overviews:/var/www/html/files/overviews
- nginxlog:/var/log/nginx
- ./nginx/html/custom_404.html:/usr/share/nginx/html/custom_404.html
ports:
- "80:80"
- "8443:8443"
security_opt:
- no-new-privileges=true
logging:
driver: "json-file"
networks:
- esnet
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:80/robots.txt || exit 1"]
interval: 1m
timeout: 10s
retries: 5
restart: unless-stopped
networks:
esnet:
driver: bridge