-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose-base.yaml
More file actions
60 lines (58 loc) · 1.53 KB
/
Copy pathdocker-compose-base.yaml
File metadata and controls
60 lines (58 loc) · 1.53 KB
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
# Docker Compose Configuration
# visit https://docs.docker.com/compose/
version: '3.8'
services:
# app service for your backend
payment:
restart: unless-stopped
healthcheck:
test: >
curl -f -X GET http://localhost:8080/health || exit 1
interval: 1s
timeout: 10s
retries: 20
start_period: 3s
build:
context: ./
target: production
environment:
DATABASE_URI: mongodb://payment-db:27017
DATABASE_NAME: misarch
SIMULATION_URL: http://simulation:8080
OTEL_TRACES_EXPORTER: none
OTEL_EXPORTER_OTLP_ENDPOINT: "http://otel-collector:4318"
OTEL_NODE_RESOURCE_DETECTORS: env,host,os
OTEL_SERVICE_NAME: payment
OTEL_SEMCONV_STABILITY_OPT_IN: http
NODE_OPTIONS: --require @opentelemetry/auto-instrumentations-node/register
depends_on:
- payment-db
payment-db:
image: mongo:6.0
hostname: payment-db
restart: always
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
volumes:
- payment-db-data:/data/db
payment-dapr:
image: "daprio/daprd:edge"
network_mode: "service:payment"
command:
[
"./daprd",
"--app-id",
"payment",
"--app-port",
"${EXPERIMENT_CONFIG_SIDECAR_PORT:-8080}",
"--dapr-http-port",
"3500",
"-placement-host-address",
"placement:50006",
"--config",
"/config.yaml",
"--resources-path",
"/components",
]
volumes:
payment-db-data: