Skip to content

Commit

Permalink
Extract gets db params from the environment section (#6)
Browse files Browse the repository at this point in the history
* Define extract database parameters from the environment section

* Add basic readme file

---------

Co-authored-by: Andrey Rusakov <[email protected]>
  • Loading branch information
lanseg and Andrey Rusakov authored Jul 17, 2024
1 parent 1047c8c commit f129bdf
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
assit-asso-extract docker package
=====

## Demo and the config for Extract and Geoshop

This repository contains a working example of the
[Extract](https://github.com/asit-asso/extract/) interacting with [Geoshop](https://github.com/camptocamp/geoshop-back/).

### Based on
* [Extract](https://github.com/asit-asso/extract)
* [Geoshop Extract connector](https://github.com/sitn/sitn_geoshop_connector)
* [Geoshop backend](https://github.com/camptocamp/geoshop-back/)

### How to run
It should be enough to run ```docker compose up```, docker will build all the images and start the containers.

13 changes: 8 additions & 5 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@ services:
depends_on:
pgsql:
condition: service_healthy
environment:
- JAVA_OPTS=-Xms1G -Xmx2G -Duser.language=fr -Duser.region=CH -Dcom.sun.jndi.ldap.connect.pool.timeout=20000
environment:
- JAVA_OPTS=-Xms1G -Xmx2G
-Dspring.datasource.url="jdbc:postgresql://pgsql:5432/extract"
-Dspring.datasource.username=extractuser
-Dspring.datasource.password=demopassword
-Duser.language=en -Duser.region=CH -Dcom.sun.jndi.ldap.connect.pool.timeout=20000
ports:
- "8080:8080"
healthcheck:
Expand Down Expand Up @@ -48,7 +52,7 @@ services:
volumes:
- ./geoshop/postgis:/docker-entrypoint-initdb.d/
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
test: ["CMD-SHELL", "pg_isready -U geoshop"]
interval: 5s
timeout: 5s
retries: 5
Expand All @@ -63,7 +67,7 @@ services:
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
test: ["CMD-SHELL", "pg_isready -U extract"]
interval: 5s
timeout: 5s
retries: 5
Expand Down Expand Up @@ -132,7 +136,6 @@ services:
condition: service_started
build:
context: ./qgis
image: reverseauth:0.5
hostname: qgisproxy
container_name: qgisproxy
volumes:
Expand Down

0 comments on commit f129bdf

Please sign in to comment.