-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
62 lines (52 loc) · 2.21 KB
/
docker-compose.yaml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
version: "3.6"
networks:
supercash-data-network:
external:
name: supercash-data-network
x-supercash-build-envs: &supercash-build-envs
# When upgrading Kotlin to support JDK 17, upgrade here
UNMAZEDBOOT_BUILDER_GRADLE_VERSION: 6.7.1-jdk15-hotspot-0.5.1 # 7.2.0-jdk16-hotspot-0.5.3 # 7.3.3-jdk17-alpine-0.5.3 #7.4.0-jdk17-0.5.3
# Variables from https://docs.gitlab.com/ee/ci/variables/predefined_variables.html
UNMAZEDBOOT_BUILDER_GIT_SHA: ${CI_COMMIT_SHORT_SHA:-UNMAZEDBOOT_BUILDER_GIT_SHA}
UNMAZEDBOOT_BUILDER_GIT_BRANCH: ${CI_COMMIT_REF_NAME:-UNMAZEDBOOT_BUILDER_GIT_BRANCH}
UNMAZEDBOOT_BUILDER_GIT_PIPELINE_URL: ${CI_PIPELINE_URL:-UNMAZEDBOOT_BUILDER_GIT_PIPELINE_URL}
# We can support linking using JDK17 without a problem, as long as gradle indicates a version lower or equal
UNMAZEDBOOT_LINKER_VERSION: jdk15-alpine-0.5.0
# Upgraded version of alpine
UNMAZEDBOOT_RUNNER_VERSION: custom-jdk-alpine3.8-0.5.0
services:
parkinglot-builder:
image: registry.gitlab.com/supercash/services/parkinglot-service/builder:local
build:
context: .
target: unmazedboot-builder-artifacts
args: *supercash-build-envs
cache_from:
- registry.gitlab.com/supercash/services/parkinglot-service/builder
parkinglot-linter:
image: registry.gitlab.com/supercash/services/parkinglot-service/linter:local
build:
context: .
target: unmazedboot-jdk-linker
args: *supercash-build-envs
cache_from:
- registry.gitlab.com/supercash/services/parkinglot-service/linter
# The parking lot service
parkinglot:
image: supercash/services/parkinglot-service
container_name: parkinglot-service
build:
context: .
args: *supercash-build-envs
# No caches as the images are already linked
#cache_from:
# - registry.gitlab.com/supercash/services/auth-service/builder:local
# - registry.gitlab.com/supercash/services/auth-service/linter:local
environment:
- DEBUG_ENV=true
- SPRING_PROFILES_ACTIVE=db,ppd_qal
- CASH_SUPER_PLATFORM_CLIENT_PAYMENT_BASEURL=${CASH_SUPER_PLATFORM_CLIENT_PAYMENT_BASEURL:-http://payment:8120/v2/payments}
ports:
- 8082:8082
networks:
- supercash-data-network