generated from hmcts/service-hmcts-crime-springboot-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (31 loc) · 816 Bytes
/
docker-compose.yml
File metadata and controls
33 lines (31 loc) · 816 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
version: '3.8'
services:
service-cp-piloting-pathfinder:
env_file:
- .env
build:
context: .
dockerfile: Dockerfile
args:
http_proxy: ${http_proxy}
https_proxy: ${https_proxy}
no_proxy: ${no_proxy}
BASE_IMAGE: ${BASE_IMAGE}
SERVER_PORT: ${SERVER_PORT}
JAR_FILENAME: ${JAR_FILENAME}
JAR_FILE_PATH: ${JAR_FILE_PATH}
environment:
- SERVER_PORT=${SERVER_PORT:-4550}
ports:
- "${SERVER_PORT:-4550}:${SERVER_PORT:-4550}"
networks:
- service-network
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:${SERVER_PORT}/health" ]
interval: 30s
timeout: 10s
retries: 3
start_period: 5s
networks:
service-network:
name: service-cp-piloting-pathfinder-network