From 7571aaef8c3dcd7033c864e5f0a17138c6d79f69 Mon Sep 17 00:00:00 2001 From: Jack Chen Date: Fri, 30 Aug 2024 12:50:23 +0800 Subject: [PATCH] feat: Update compose file for support-cron-scheduler service closes #457 Signed-off-by: Jack Chen --- docker-compose-postgres-no-secty-arm64.yml | 46 ++++++++++++++++++++++ docker-compose-postgres-no-secty.yml | 46 ++++++++++++++++++++++ 2 files changed, 92 insertions(+) diff --git a/docker-compose-postgres-no-secty-arm64.yml b/docker-compose-postgres-no-secty-arm64.yml index 8a40e870..bbf512a0 100644 --- a/docker-compose-postgres-no-secty-arm64.yml +++ b/docker-compose-postgres-no-secty-arm64.yml @@ -307,6 +307,52 @@ services: source: postgres-data target: /var/lib/postgresql/data volume: {} + support-cron-scheduler: + command: + - --registry + - -cp=keeper.http://edgex-core-keeper:59890 + container_name: edgex-support-cron-scheduler + depends_on: + core-common-config-bootstrapper: + condition: service_started + required: true + edgex-postgres: + condition: service_started + required: true + keeper: + condition: service_started + required: true + environment: + EDGEX_SECURITY_SECRET_STORE: "false" + WRITABLE_INSECURESECRETS_DB_SECRETNAME: postgres + WRITABLE_INSECURESECRETS_DB_SECRETDATA_USERNAME: postgres + WRITABLE_INSECURESECRETS_DB_SECRETDATA_PASSWORD: postgres + SERVICE_HOST: edgex-support-cron-scheduler + DATABASE_HOST: edgex-postgres + DATABASE_TYPE: postgres + DATABASE_PORT: "5432" + hostname: edgex-core-data + image: nexus3.edgexfoundry.org:10004/support-cron-scheduler-arm64:latest + networks: + edgex-network: null + ports: + - mode: ingress + host_ip: 127.0.0.1 + target: 59863 + published: "59863" + protocol: tcp + read_only: true + restart: always + security_opt: + - no-new-privileges:true + user: 2002:2001 + volumes: + - type: bind + source: /etc/localtime + target: /etc/localtime + read_only: true + bind: + create_host_path: true networks: edgex-network: name: edgex_edgex-network diff --git a/docker-compose-postgres-no-secty.yml b/docker-compose-postgres-no-secty.yml index 18784e71..db16d100 100644 --- a/docker-compose-postgres-no-secty.yml +++ b/docker-compose-postgres-no-secty.yml @@ -307,6 +307,52 @@ services: source: postgres-data target: /var/lib/postgresql/data volume: { } + support-cron-scheduler: + command: + - --registry + - -cp=keeper.http://edgex-core-keeper:59890 + container_name: edgex-support-cron-scheduler + depends_on: + core-common-config-bootstrapper: + condition: service_started + required: true + edgex-postgres: + condition: service_started + required: true + keeper: + condition: service_started + required: true + environment: + EDGEX_SECURITY_SECRET_STORE: "false" + WRITABLE_INSECURESECRETS_DB_SECRETNAME: postgres + WRITABLE_INSECURESECRETS_DB_SECRETDATA_USERNAME: postgres + WRITABLE_INSECURESECRETS_DB_SECRETDATA_PASSWORD: postgres + SERVICE_HOST: edgex-support-cron-scheduler + DATABASE_HOST: edgex-postgres + DATABASE_TYPE: postgres + DATABASE_PORT: "5432" + hostname: edgex-core-data + image: nexus3.edgexfoundry.org:10004/support-cron-scheduler:latest + networks: + edgex-network: null + ports: + - mode: ingress + host_ip: 127.0.0.1 + target: 59863 + published: "59863" + protocol: tcp + read_only: true + restart: always + security_opt: + - no-new-privileges:true + user: 2002:2001 + volumes: + - type: bind + source: /etc/localtime + target: /etc/localtime + read_only: true + bind: + create_host_path: true networks: edgex-network: name: edgex_edgex-network