From db09e602acc7a482dacf66126e4418a795fcbda5 Mon Sep 17 00:00:00 2001 From: john-wiens Date: Thu, 30 Jan 2025 16:27:16 -0700 Subject: [PATCH] Adding in ODE as Submodule Dependency --- docker-compose-ode.yml | 147 +++++++++++++++++++++++++++++++++++++++++ docker-compose.yml | 2 + 2 files changed, 149 insertions(+) create mode 100644 docker-compose-ode.yml diff --git a/docker-compose-ode.yml b/docker-compose-ode.yml new file mode 100644 index 0000000..bdcdc8c --- /dev/null +++ b/docker-compose-ode.yml @@ -0,0 +1,147 @@ +include: + - jpo-utils/docker-compose.yml + +services: + geojsonconverter: + profiles: + - all + - cm_api_full + - geojsonconverter + image: usdotjpoode/geojsonconverter:latest + restart: ${RESTART_POLICY} + deploy: + resources: + limits: + cpus: '1' + memory: 2G + environment: + DOCKER_HOST_IP: ${DOCKER_HOST_IP:?error} + KAFKA_TYPE: ${KAFKA_TYPE} + CONFLUENT_KEY: ${CONFLUENT_KEY} + CONFLUENT_SECRET: ${CONFLUENT_SECRET} + geometry.output.mode: ${GEOMETRY_OUTPUT_MODE:-GEOJSON_ONLY} + spring.kafka.bootstrap-servers: ${DOCKER_HOST_IP:?error}:9092 + logging: + options: + max-size: "10m" + max-file: "5" + depends_on: + kafka: + condition: service_healthy + required: false + # ODE Services: + ode: + profiles: + - all + - cm_api_full + - ode + image: usdotjpoode/jpo-ode:latest + restart: ${RESTART_POLICY} + deploy: + resources: + limits: + cpus: '2' + memory: 4G + ports: + - "8080:8080" + - "9090:9090" + - "46753:46753/udp" + - "46800:46800/udp" + - "47900:47900/udp" + - "44900:44900/udp" + - "44910:44910/udp" + - "44920:44920/udp" + - "44930:44930/udp" + - "44940:44940/udp" + - "44990:44990/udp" + - "5555:5555/udp" + - "6666:6666/udp" + environment: + DOCKER_HOST_IP: ${DOCKER_HOST_IP:?error} + KAFKA_TYPE: ${KAFKA_TYPE} + CONFLUENT_KEY: ${CONFLUENT_KEY} + CONFLUENT_SECRET: ${CONFLUENT_SECRET} + ODE_TIM_INGEST_MONITORING_ENABLED: true + ODE_TIM_INGEST_MONITORING_INTERVAL: 60 + DATA_SIGNING_ENABLED_RSU: false + DATA_SIGNING_ENABLED_SDW: false + ODE_KAFKA_BROKERS: ${DOCKER_HOST_IP}:9092 + KAFKA_LINGER_MS: 1 + KAFKA_BATCH_SIZE: 16384 + KAFKA_RETRIES: 0 + depends_on: + kafka: + condition: service_healthy + required: false + healthcheck: + test: ["CMD", "wget" ,"--spider", "http://localhost:8080"] + interval: 5s + timeout: 30s + retries: 5 + start_period: 10s + logging: + options: + max-size: "10m" + max-file: "5" + + adm: + profiles: + - all + - cm_api_full + - adm + image: usdotjpoode/asn1_codec:latest + restart: ${RESTART_POLICY} + deploy: + resources: + limits: + cpus: '1' + memory: 2G + environment: + DOCKER_HOST_IP: ${DOCKER_HOST_IP:?error} + KAFKA_TYPE: ${KAFKA_TYPE} + CONFLUENT_KEY: ${CONFLUENT_KEY} + CONFLUENT_SECRET: ${CONFLUENT_SECRET} + ACM_CONFIG_FILE: adm.properties + ACM_LOG_TO_CONSOLE: ${ADM_LOG_TO_CONSOLE:-false} + ACM_LOG_TO_FILE: ${ADM_LOG_TO_FILE:-true} + ACM_LOG_LEVEL: ${ADM_LOG_LEVEL:-INFO} + depends_on: + kafka: + condition: service_healthy + required: false + logging: + options: + max-size: "10m" + max-file: "5" + + conflictmonitor: + profiles: + - all + - cm_api_full + - conflictmonitor + image: usdotjpoode/jpo-conflictmonitor:latest + restart: ${RESTART_POLICY} + ports: + - "8082:8082" + environment: + DOCKER_HOST_IP: ${DOCKER_HOST_IP:?error} + KAFKA_BOOTSTRAP_SERVERS: ${KAFKA_BOOTSTRAP_SERVERS:?error} + kafka.topics.autoCreateTopics: false + spring.kafka.bootstrap-servers: ${KAFKA_BOOTSTRAP_SERVERS:?error} + healthcheck: + test: ["CMD", "java", "-version"] + interval: 10s + timeout: 10s + retries: 20 + logging: + options: + max-size: "10m" + max-file: "5" + deploy: + resources: + limits: + memory: 3G + depends_on: + kafka: + condition: service_healthy + required: false diff --git a/docker-compose.yml b/docker-compose.yml index c2a9e33..142814a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,3 +1,5 @@ +include: + - docker-compose-ode.yml services: deduplicator: profiles: