Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data-api in docker comp #316

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: 24 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,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 +412,26 @@ services:
- 'rabbitmq_data:/bitnami/rabbitmq/mnesia'
restart: always


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"