docker-compose.yml 9.23 KiB
version: '3.8'
services: 
  keycloak-casa-db:
    image: postgres
    ports:
      - 5432:5432
    environment:
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: postgres
      POSTGRES_DB: keycloak
    volumes:
      - data:/var/lib/postgresql/data
  casa-user-data-service:
    build:
      context: https://github.com/UPHRH-platform/casa-user-data-service.git#main
    image: casa-user-data-service
    ports:
      - 3000:3000
  keycloak-casa:
    image: keycloak-casa
    build: ./keycloak-casa
    depends_on:
      - keycloak-casa-db
      - casa-user-data-service
    ports:
      - 8080:8080 
    environment:
      KC_DB_URL: jdbc:postgresql://keycloak-casa-db:5432/keycloak
      KC_DB_USERNAME: postgres
      KC_DB_PASSWORD: postgres
      KC_HOSTNAME: locahost
      KC_DB: postgres
      KEYCLOAK_ADMIN: admin
      KEYCLOAK_ADMIN_PASSWORD: admin
    command:
      - "start-dev"
  lr-service:
    image: lr-service
    build:
      context: https://github.com/UPHRH-platform/lr-service.git#main
    ports:
      - 5000:5000
    # env_file:
    #   - 
  es:
    image: docker.elastic.co/elasticsearch/elasticsearch:7.10.1
    environment:
      - discovery.type=single-node
      - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
      - ELASTIC_PASSWORD=${ELASTIC_SEARCH_PASSWORD}
      - xpack.security.enabled=${ELASTIC_SECURITY_ENABLED-false}
    ports:
      - "9200:9200"
      - "9300:9300"
    healthcheck:
      test: [ "CMD", "curl", "-f", "localhost:9200/_cluster/health", "--header",  "Authorization: Basic ZWxhc3RpYzpEa0llZFBQU0Ni" ]
      interval: 30s
      timeout: 10s
      retries: 4
  db:
    image: postgres
    volumes:
      - ./${DB_DIR-db-data}:/var/lib/postgresql/data
    ports:
      - "5432:5432"
    environment:
7172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
- POSTGRES_DB=registry - POSTGRES_USER=postgres - POSTGRES_PASSWORD=postgres healthcheck: test: [ "CMD-SHELL", "pg_isready -U postgres" ] interval: 10s timeout: 5s retries: 5 registry: image: dockerhub/sunbird-rc-core:${RELEASE_VERSION} volumes: - ${PWD}/${SCHEMA_DIR-java/registry/src/main/resources/public/_schemas}:/home/sunbirdrc/config/public/_schemas environment: - connectionInfo_uri=jdbc:postgresql://db:5432/registry - connectionInfo_username=postgres - connectionInfo_password=postgres - elastic_search_connection_url=es:9200 - elastic_search_auth_enabled=${ELASTIC_SECURITY_ENABLED-false} - elastic_search_username=${ELASTIC_SEARCH_USERNAME-elastic} - elastic_search_password=${ELASTIC_SEARCH_PASSWORD} - search_providerName=${SEARCH_PROVIDER_NAME-dev.sunbirdrc.registry.service.ElasticSearchService} - sunbird_sso_realm=${KEYCLOAK_REALM-sunbird-rc} - sunbird_sso_url=http://keycloak:8080/auth - sunbird_sso_admin_client_id=${KEYCLOAK_ADMIN_CLIENT_ID-admin-api} - sunbird_sso_client_id=${KEYCLOAK_CLIENT_ID-registry-frontend} - sunbird_sso_admin_client_secret=fd11a771-810b-4b9d-bbb5-c690ada67253 - claims_url=http://claim-ms:8082 - sign_url=http://certificate-signer:8079/sign - sign_health_check_url=http://certificate-signer:8079/health - signature_enabled=true - pdf_url=http://certificate-api:8078/api/v1/certificatePDF - certificate_health_check_url=http://certificate-api:8078/health - template_base_url=http://registry:8081/api/v1/templates/ #Looks for certificate templates for pdf copy of the signed certificate - sunbird_keycloak_user_set_password=true - filestorage_connection_url=http://file-storage:9000 - filestorage_access_key=admin - filestorage_secret_key=12345678 - filestorage_bucket_key=issuance - registry_base_apis_enable=false - sunbird_keycloak_user_password=abcd@123 - logging.level.root=INFO - enable_external_templates=true - async_enabled=${ASYNC_ENABLED-false} - authentication_enabled=true - kafka_bootstrap_address=kafka:9092 - webhook_enabled=false - webhook_url=http://localhost:5001/api/v1/callback - redis_host=redis - redis_port=6379 - manager_type=${MANAGER_TYPE-DefinitionsManager} ports: - "8081:8081" depends_on: es: condition: service_healthy db: condition: service_healthy healthcheck: test: [ "CMD-SHELL", "wget -nv -t1 --spider http://localhost:8081/health || exit 1" ] interval: 30s timeout: 10s retries: 4 keycloak: image: dockerhub/sunbird-rc-keycloak:latest volumes: - ${PWD}/${KEYCLOAK_IMPORT_DIR-imports}:/opt/jboss/keycloak/imports environment: - KEYCLOAK_LOGO=https://svgshare.com/i/hCs.svg - DB_VENDOR=postgres - DB_ADDR=db