From dafe96b019ca038fb10d99939d820587ae3fae56 Mon Sep 17 00:00:00 2001 From: DarioGii Date: Sun, 22 Dec 2024 09:17:51 +0000 Subject: [PATCH] 2270: updating docker-compose files --- .../docker-compose-latest-fat-security.yml | 7 +++++++ ...ocker-compose-latest-security-with-sso.yml | 7 +++++++ .../docker-compose-latest-security.yml | 20 +++++++++++++++++++ ...ker-compose-latest-ultra-lite-security.yml | 7 +++++++ 4 files changed, 41 insertions(+) diff --git a/exampleYmlFiles/docker-compose-latest-fat-security.yml b/exampleYmlFiles/docker-compose-latest-fat-security.yml index e46bd0e9..8b7ad305 100644 --- a/exampleYmlFiles/docker-compose-latest-fat-security.yml +++ b/exampleYmlFiles/docker-compose-latest-fat-security.yml @@ -30,4 +30,11 @@ services: SYSTEM_MAXFILESIZE: "100" METRICS_ENABLED: "true" SYSTEM_GOOGLEVISIBILITY: "true" + SYSTEM_DATASOURCE_TYPE: "postgresql" + SYSTEM_DATASOURCE_HOSTNAME: "db" + SYSTEM_DATASOURCE_PORT: "5432" + SYSTEM_DATASOURCE_NAME: "stirling_pdf" + SYSTEM_DATASOURCE_USEDEFAULT: "false" + SYSTEM_DATASOURCE_USERNAME: "admin" + SYSTEM_DATASOURCE_PASSWORD: "stirling" restart: on-failure:5 diff --git a/exampleYmlFiles/docker-compose-latest-security-with-sso.yml b/exampleYmlFiles/docker-compose-latest-security-with-sso.yml index 9d30986c..90fec34d 100644 --- a/exampleYmlFiles/docker-compose-latest-security-with-sso.yml +++ b/exampleYmlFiles/docker-compose-latest-security-with-sso.yml @@ -38,4 +38,11 @@ services: SYSTEM_MAXFILESIZE: "100" METRICS_ENABLED: "true" SYSTEM_GOOGLEVISIBILITY: "true" + SYSTEM_DATASOURCE_TYPE: "postgresql" + SYSTEM_DATASOURCE_HOSTNAME: "db" + SYSTEM_DATASOURCE_PORT: "5432" + SYSTEM_DATASOURCE_NAME: "stirling_pdf" + SYSTEM_DATASOURCE_USEDEFAULT: "false" + SYSTEM_DATASOURCE_USERNAME: "admin" + SYSTEM_DATASOURCE_PASSWORD: "stirling" restart: on-failure:5 diff --git a/exampleYmlFiles/docker-compose-latest-security.yml b/exampleYmlFiles/docker-compose-latest-security.yml index d29c185d..89124a81 100644 --- a/exampleYmlFiles/docker-compose-latest-security.yml +++ b/exampleYmlFiles/docker-compose-latest-security.yml @@ -6,6 +6,8 @@ services: resources: limits: memory: 4G + depends_on: + - db healthcheck: test: ["CMD-SHELL", "curl -f http://localhost:8080/api/v1/info/status | grep -q 'UP' && curl -fL http://localhost:8080/ | grep -q 'Please sign in'"] interval: 5s @@ -30,4 +32,22 @@ services: SYSTEM_MAXFILESIZE: "100" METRICS_ENABLED: "true" SYSTEM_GOOGLEVISIBILITY: "true" + SYSTEM_DATASOURCE_TYPE: "postgresql" + SYSTEM_DATASOURCE_HOSTNAME: "db" + SYSTEM_DATASOURCE_PORT: "5432" + SYSTEM_DATASOURCE_NAME: "stirling_pdf" + SYSTEM_DATASOURCE_USEDEFAULT: "false" + SYSTEM_DATASOURCE_USERNAME: "admin" + SYSTEM_DATASOURCE_PASSWORD: "stirling" restart: on-failure:5 + + db: + image: 'postgres:17.2-alpine' + restart: on-failure:5 + container_name: db + ports: + - "5432:5432" + environment: + POSTGRES_DB: "stirling_pdf" + POSTGRES_USER: "admin" + POSTGRES_PASSWORD: "stirling" \ No newline at end of file diff --git a/exampleYmlFiles/docker-compose-latest-ultra-lite-security.yml b/exampleYmlFiles/docker-compose-latest-ultra-lite-security.yml index f357e0b9..9ce762e5 100644 --- a/exampleYmlFiles/docker-compose-latest-ultra-lite-security.yml +++ b/exampleYmlFiles/docker-compose-latest-ultra-lite-security.yml @@ -27,4 +27,11 @@ services: SYSTEM_MAXFILESIZE: "100" METRICS_ENABLED: "true" SYSTEM_GOOGLEVISIBILITY: "true" + SYSTEM_DATASOURCE_TYPE: "postgresql" + SYSTEM_DATASOURCE_HOSTNAME: "db" + SYSTEM_DATASOURCE_PORT: "5432" + SYSTEM_DATASOURCE_NAME: "stirling_pdf" + SYSTEM_DATASOURCE_USEDEFAULT: "false" + SYSTEM_DATASOURCE_USERNAME: "admin" + SYSTEM_DATASOURCE_PASSWORD: "stirling" restart: on-failure:5