Skip to content

Commit

Permalink
Merge pull request #316 from georchestra/data-api-24
Browse files Browse the repository at this point in the history
Data-api in docker comp
  • Loading branch information
f-necas authored Mar 5, 2025
2 parents d190ef1 + b160b1b commit 8d1f4aa
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 3 deletions.
1 change: 1 addition & 0 deletions .envs-hosts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ KB_PORT=5601
ES_HOST=elasticsearch
ES_PORT=9200
RABBITMQ_HOST=rabbitmq
DATA_API_HOST=data-api

# needed for geonetwork entrypoint DO NOT REMOVE
CONSOLE_URL=http://${CONSOLE_HOST}:8080
Expand Down
2 changes: 1 addition & 1 deletion config
26 changes: 26 additions & 0 deletions docker-compose.data-api.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
version: "3.1"

services:
data-api:
image: georchestra/data-api:1.3.0
# healthcheck:
# test: [ "CMD-SHELL", "curl -s -f http://localhost:8080/data/ogcapi >/dev/null || exit 1" ]
# interval: 30s
# timeout: 10s
# retries: 10
depends_on:
database:
condition: service_healthy
volumes:
- georchestra_datadir:/etc/georchestra
environment:
SPRING_PROFILES_ACTIVE: postgis
LOGGING_LEVEL_COM_CAMPTOCAMP: DEBUG
LOGGING_LEVEL_ORG_GEOTOOLS: DEBUG
SERVER_SERVLET_CONTEXT_PATH: /data
POSTGRES_HOST: postgis
POSTGRES_PORT: 5432
POSTGRES_DB: datafeeder
POSTGRES_USER: georchestra
POSTGRES_PASSWORD: georchestra
JAVA_TOOL_OPTIONS: "-Ddataapi.configdir=/etc/georchestra"
6 changes: 4 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
version: "3.1"

include:
- docker-compose.data-api.yml

volumes:
postgresql_data:
ldap_data:
Expand Down Expand Up @@ -314,7 +317,7 @@ services:
- georchestra_datadir:/etc/georchestra
- datafeeder_uploads:/tmp/datafeeder
environment:
- JAVA_OPTS=-Xms512m -Xmx512m
- JAVA_OPTS=-Xms512m -Xmx512m -Dspring.profiles.active=georchestra,data-api-schemas -Dspring.config.additional-location=file:/etc/georchestra/data-api/application.yaml
# You can set a higher loglevel this way: (ref. https://docs.spring.io/spring-boot/docs/2.1.13.RELEASE/reference/html/boot-features-logging.html#boot-features-custom-log-levels)
- LOGGING_LEVEL_ORG_GEORCHESTRA_DATAFEEDER=INFO
env_file:
Expand Down Expand Up @@ -412,4 +415,3 @@ services:
- 'rabbitmq_data:/bitnami/rabbitmq/mnesia'
restart: always


0 comments on commit 8d1f4aa

Please sign in to comment.