-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (38 loc) · 931 Bytes
/
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
version: '3.4'
services:
server:
image: ${DOCKER_REGISTRY-}server
build:
context: .
dockerfile: Server/Dockerfile
ports:
- "51001:50001"
- "3500:3500"
server-dapr:
image: "daprio/daprd:latest"
command: [ "./daprd", "-app-id", "server", "-app-port", "80" ]
depends_on:
- server
network_mode: "service:server"
client:
image: ${DOCKER_REGISTRY-}client
build:
context: .
dockerfile: Client/Dockerfile
environment:
# - BASE_URL=http://localhost
# - PORT=3500
# - SERVER_APP_ID=server
# - NUM_WORKERS=250
# - BLOCKS_PER_WORKER=10
# - REQUEST_PER_BLOCK=500
- RUN_TIMES=10
ports:
- "52001:50001"
# network_mode: "service:server"
client-dapr:
image: "daprio/daprd:latest"
command: [ "./daprd", "-app-id", "client" ]
depends_on:
- client
network_mode: "service:client"