-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
94 lines (88 loc) · 2.41 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
version: "3.9"
services:
accountservice:
image: account:latest
build:
context: Services/AccountService/Host/bin/Release/net6.0/publish/
dockerfile: Dockerfile
restart: always
ports:
- "3500:3500"
environment:
- DAPR_HTTP_PORT=3500
- DOCKER_BASEPATH=host.docker.internal
- HostIP=192.168.10.161:3500
- ApisixUrl=http://192.168.10.21:8500
accountservice-dapr:
image: "daprio/daprd:edge"
command: [
"./daprd",
"-app-id", "accountservice",
"-app-port", "8001",
"-dapr-http-port", "3500",
"-components-path", "/dapr/components/",
"-config","/dapr/config.yaml",
"-placement-host-address", "host.docker.internal:6050" # Dapr's placement service can be reach via the docker DNS entry
]
volumes:
- "./config:/dapr"
depends_on:
- accountservice
network_mode: "service:accountservice" # service:accountservice
#pubservice:
# image: pubs:latest
# restart: always
# ports:
# - "3501:3500"
# environment:
# - DAPR_HTTP_PORT=3500
# - DOCKER_BASEPATH=host.docker.internal
#pubservice-dapr:
# image: "daprio/daprd:edge"
# command: [
# "./daprd",
# "-app-id", "publicservice",
# "-app-port", "80",
# "-dapr-http-port", "3500",
# "-components-path", "/dapr/components/",
# "-config","/dapr/config.yaml",
# "-placement-host-address", "host.docker.internal:6050"
# ]
# volumes:
# - "./config:/dapr"
# depends_on:
# - pubservice
# network_mode: "service:pubservice"
#jobservice:
# image: job:latest
# restart: always
# environment:
# - DAPR_HTTP_PORT=3500
#jobservice-dapr:
# image: "daprio/daprd:edge"
# command: [
# "./daprd",
# "-app-id", "jobservice",
# "-app-port", "80",
# "-dapr-http-port", "3500",
# "-components-path", "/dapr/components",
# "-config","/dapr/config.yaml",
# "-placement-host-address", "host.docker.internal:6050" Dapr's placement service can be reach via the docker DNS entry
# ]
# volumes:
# - "./config:/dapr"
# depends_on:
# - jobservice
# network_mode: "service:jobservice"
#nginx:
# image: nginx:latest
# restart: always
#volumes:
# - ./appsettings.json:/home/docker/meisha/appsettings.yaml
# ports:
# - "80:80"
#placement:
# image: "daprio/dapr"
# command: ["./placement", "-port", "50006"]
# ports:
# - "50006:50006"