-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose-daml-services.yml
77 lines (75 loc) · 2 KB
/
docker-compose-daml-services.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
---
# Copyright 2022 Digital Asset (Switzerland) GmbH and/or its affiliates
#
# SPDX-License-Identifier: Apache-2.0
#
services:
http-json:
image: digitalasset/http-json:${SDK_VERSION}
container_name: daml_observability_http_json
build:
context: daml-service
dockerfile: Dockerfile
args:
SDK_VERSION: ${SDK_VERSION}
DAML_SERVICE: http-json
ports:
# HTTP JSON API
- 4001:4001
# Prometheus exporter
- 19091:19091
environment:
JDK_JAVA_OPTIONS: "-XX:+ExitOnOutOfMemoryError -Xmx1G"
command:
- "--config=/http-json/http-json.conf"
- "--log-level=${LOG_LEVEL:-INFO}"
- "--log-encoder=json"
volumes:
# Logs
- logs:/var/log/promtail
- ./http-json:/http-json
healthcheck:
# Requires curl in image
test: "curl -f localhost:4001/livez && curl -f localhost:4001/readyz"
interval: 5s
timeout: 1s
retries: 3
depends_on:
postgres:
condition: service_healthy
canton:
condition: service_healthy
trigger-service:
image: digitalasset/trigger-service:${SDK_VERSION}
container_name: daml_observability_trigger_service
build:
context: daml-service
dockerfile: Dockerfile
args:
SDK_VERSION: ${SDK_VERSION}
DAML_SERVICE: trigger-service
ports:
- 4002:8088
# Prometheus exporter
- 19092:19090
environment:
JDK_JAVA_OPTIONS: "-XX:+ExitOnOutOfMemoryError -Xmx1G"
LOG_LEVEL_ROOT: ${LOG_LEVEL:-INFO}
LOG_FORMAT_JSON: "true"
command:
- "--config=/trigger-service/trigger-service.conf"
volumes:
# Logs
- logs:/var/log/promtail
- ./trigger-service:/trigger-service
healthcheck:
# Requires curl in image
test: "curl -f localhost:4002/livez && curl -f localhost:4002/readyz"
interval: 5s
timeout: 1s
retries: 3
depends_on:
postgres:
condition: service_healthy
canton:
condition: service_healthy