Skip to content
tarun-palisetty edited this page May 30, 2019 · 4 revisions

Azure docker registry

Fees-register docker image can be located by accessing the below link.

https://portal.azure.com/#@HMCTS.NET/resource/subscriptions/1c4f0704-a29e-403d-b719-b90c34ef14c9/resourceGroups/cnp-acr-rg/providers/Microsoft.ContainerRegistry/registries/hmcts/repository

Steps to spin-up fees-register docker image locally

  1. az login
  2. az acr login --name hmcts set --subscription DCD-CNP-DEV
  3. clone the fees-register repo
  4. From within the fees-register directory run the below command
    docker-compose pull fees-api fees-database && docker-compose up -d fees-database fees-api 
    

Docker-compose yaml

version: '2.1'

services:
  fees-api:
    build:
      context: .
      args:
        - http_proxy
        - https_proxy
        - no_proxy
    image: hmcts.azurecr.io/hmcts/fees-register-api:latest
    container_name: fees-api
    environment:
      - SPRING_DATASOURCE_URL=jdbc:postgresql://fees-database:5432/fees_register
      - SPRING_DATASOURCE_USERNAME=fees_register
      - SPRING_DATASOURCE_PASSWORD=fees_register
      - AUTH_IDAM_CLIENT_BASEURL=
    ports:
     - 8182:8080
    links:
      - fees-database
    depends_on:
      - fees-database

  fees-database:
    container_name: fees-database
    image: postgres
    environment:
      - POSTGRES_USER=fees_register
      - POSTGRES_PASSWORD=fees_register
      - POSTGRES_DB=fees_register
    ports:
      - 5182:5432
    volumes:
      - fees-database-data:/var/lib/postgresql/data

volumes:
  fees-database-data:

Clone this wiki locally