-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose-base.yaml
More file actions
50 lines (50 loc) · 1.14 KB
/
Copy pathdocker-compose-base.yaml
File metadata and controls
50 lines (50 loc) · 1.14 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
services:
invoice:
restart: unless-stopped
build:
context: .
dockerfile: base-dockerfile
healthcheck:
test: wget -qO - http://localhost:8080/health || exit 1
interval: 1s
timeout: 10s
retries: 20
start_period: 3s
depends_on:
invoice-db:
condition: service_healthy
environment:
MONGODB_URI: mongodb://invoice-db:27017
invoice-db:
image: mongo
volumes:
- invoice-db-data:/data/db
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
interval: 10s
timeout: 5s
retries: 3
command: --quiet
invoice-dapr:
image: "daprio/daprd:edge"
command:
[
"./daprd",
"--app-id",
"invoice",
"--app-port",
"${EXPERIMENT_CONFIG_SIDECAR_PORT:-8080}",
"--app-protocol",
"http",
"--dapr-http-port",
"3500",
"-placement-host-address",
"placement:50006",
"--config",
"/config.yaml",
"--resources-path",
"/components",
]
network_mode: "service:invoice"
volumes:
invoice-db-data: