From 8742f46597b7aea0fc1e0a12d2795cf230208b3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Wed, 7 Aug 2024 16:56:38 +0200 Subject: [PATCH] Add cluster mode in tests --- docker-compose.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/docker-compose.yaml b/docker-compose.yaml index e3a14d0db8..8e23e7890c 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -17,6 +17,31 @@ services: LOG_LEVEL: DEBUG JASPER_LOG_LEVEL: DEBUG + db: + image: camptocamp/postgres:14-postgis-3 + environment: + - POSTGRES_PASSWORD=pgpass + - POSTGRES_DB=print + - POSTGRES_USER=print + + printclusternode1: &printclusternode + image: mapfish_print_tester + volumes: + - ./examples/src/test/resources/examples:/usr/local/tomcat/webapps/ROOT/print-apps + ports: + - 8081:8080 + environment: + PRINT_YAML_MAX_ALIASES: 200 + LOG_LEVEL: DEBUG + JASPER_LOG_LEVEL: DEBUG + CATALINA_OUT: /dev/stdout + CATALINA_OPTS: -Ddb.host=db -Ddb.port=5432 -Ddb.username=print -Ddb.password=pgpass -Ddb.name=print -Ddb.schema=public + + printclusternode2: + <<: *printclusternode + ports: + - 8082:8080 + tests: image: mapfish_print_builder user: ${USER_ID}