-
Notifications
You must be signed in to change notification settings - Fork 4
Docker
tarun-palisetty edited this page May 30, 2019
·
4 revisions
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
- az login
- az acr login --name hmcts set --subscription DCD-CNP-DEV
- clone the fees-register repo
- 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
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: