# Local profile defaults are intentionally overridable because developer machines
# and local Docker deployments use different network names.
pcp:
  infra:
    postgres:
      host: ${PCP_POSTGRES_HOST:localhost}
      port: ${PCP_POSTGRES_PORT:5432}
    kafka:
      host: ${PCP_KAFKA_HOST:localhost}
      port: ${PCP_KAFKA_PORT:29092}



  network:
    host: ${PCP_NETWORK_HOST:localhost}

  ports:
    config: 38888
    admin: 7000
    route-processing: 7004
    request: 7005
    ballistics: 7003
    complex-mission-service: 7002
    stations: 7009
    slots: 7006
    mission: 7010
    ui: 7008
    tgu: 7011
    tle-monitoring: 7001
    complex-mission-flow: 7007
    coverage-scheme: 7012
    satellite-catalog: 7013
    dynamic-plan: 7014
    gateway: 7080

  services:
    config: http://${pcp.network.host}:${pcp.ports.config}
    admin: http://${pcp.network.host}:${pcp.ports.admin}
    route-processing: http://${pcp.network.host}:${pcp.ports.route-processing}
    request: http://${pcp.network.host}:${pcp.ports.request}
    earth-grid: ${pcp.services.request}
    ballistics: http://${pcp.network.host}:${pcp.ports.ballistics}
    complex-mission-service: http://${pcp.network.host}:${pcp.ports.complex-mission-service}
    stations: http://${pcp.network.host}:${pcp.ports.stations}
    slots: http://${pcp.network.host}:${pcp.ports.slots}
    mission: http://${pcp.network.host}:${pcp.ports.mission}
    ui: http://${pcp.network.host}:${pcp.ports.ui}
    tgu: http://${pcp.network.host}:${pcp.ports.tgu}
    tle-monitoring: http://${pcp.network.host}:${pcp.ports.tle-monitoring}
    coverage-scheme: http://${pcp.network.host}:${pcp.ports.coverage-scheme}
    satellite-catalog: http://${pcp.network.host}:${pcp.ports.satellite-catalog}
    dynamic-plan: http://${pcp.network.host}:${pcp.ports.dynamic-plan}
    gateway: http://${pcp.network.host}:${pcp.ports.gateway}

spring:
  boot:
    admin:
      client:
        enabled: true
        url:
          - ${pcp.services.admin}
        auto-registration: true
        auto-deregistration: true
        register-once: true
