-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (51 loc) · 2.09 KB
/
docker-compose.yml
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
version: '3.8'
services:
pubsub-emulator-rh-ui-it:
container_name: pubsub-emulator-rh-ui-it
image: europe-west2-docker.pkg.dev/ssdc-rm-ci/docker/gcloud-pubsub-emulator:latest
ports:
- "9538:8538"
setup-pubsub-emulator-rh-ui-it:
container_name: setup-pubsub-emulator-rh-ui-it
image: europe-west2-docker.pkg.dev/ssdc-rm-ci/docker/gcloud-pubsub-emulator:latest
environment:
- PUBSUB_SETUP_HOST=pubsub-emulator-rh-ui-it:8538
volumes:
- ./tests/integration/setup_pubsub.sh:/setup_pubsub.sh
depends_on:
- pubsub-emulator-rh-ui-it
entrypoint: sh -c "/setup_pubsub.sh"
firestore-emulator:
container_name: firestore-emulator-rh-ui-it
image: europe-west2-docker.pkg.dev/ssdc-rm-ci/docker/gcloud-firestore-emulator:latest
ports:
- "9542:8540"
rh-service:
container_name: rh-service-rh-ui-it
image: europe-west2-docker.pkg.dev/ssdc-rm-ci/docker/ssdc-rh-service:latest
ports:
- "9071:8071"
environment:
- spring.cloud.gcp.pubsub.emulator-host=pubsub-emulator-rh-ui-it:8538
- spring.cloud.gcp.pubsub.project-id=rh-ui-project
- QUEUECONFIG_SHARED-PUBSUB-PROJECT=rh-ui-project
- firestore.project-id=rh-ui-project
- FIRESTORE_EMULATOR_HOST=firestore-emulator-rh-ui-it:8540
- GOOGLE_APPLICATION_CREDENTIALS=/gcp/config/google-credentials.json
- GOOGLE_CLOUD_PROJECT=rh-ui-dummy-local
- EQ_RESPONSE-ID-PEPPER=TABASCO_SAUCE
- JWT_KEYS=/home/rh-service/keys/eq-keys.json
- MESSAGELOGGING_LOGSTACKTRACES=true
volumes:
- type: bind
source: ./tests/resources/fake-service-account.json # The spring Firestore client requires google credentials, give it a dummy account locally
target: /gcp/config/google-credentials.json
- ./tests/resources/java_healthcheck:/opt/healthcheck
- ./tests/resources/dummy_keys:/home/rh-service/keys
restart: always
healthcheck:
test: [ "CMD", "java", "-jar", "/opt/healthcheck/HealthCheck.jar", "http://localhost:8071/actuator/health" ]
interval: 5s
timeout: 3s
retries: 20
start_period: 5s