-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-metalogix.yml
117 lines (110 loc) · 3.46 KB
/
docker-compose-metalogix.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
services:
##################################################################################
# GLOBAL COMMON SERVICES
##################################################################################
# shell-fe:
# build:
# context: .
# dockerfile: "deployment/docker/web/Dockerfile.dev"
# ports:
# - "3000:3000"
# environment:
# NODE_ENV: development
#
# example-fe:
# build:
# context: .
# dockerfile: "example/docker/web/Dockerfile.dev"
# ports:
# - "3001:3001"
# environment:
# NODE_ENV: development
# volumes:
# - ./example/web/package.json:/src/package.json
# - ./example/web/yarn.lock:/src/yarn.lock
# - ./example/web:/src
gateway:
image: ghcr.io/azarc-io/verathread-gateway/gateway-be:v1.51.0
environment:
CONFIG_DIR: /config
BASE_CONTEXT: metalogix
DAPRD_BIN_PATH: /src/.data/bin
AUTH_DOMAIN: ${AUTH_DOMAIN}
DAPR_GRPC_PORT: 6011
volumes:
- ./cmd/app/config:/config
ports:
- "6010:6010"
depends_on:
- mongodb_dev
gateway-dapr:
image: "daprio/daprd:edge"
command: [
"./daprd",
"--app-id", "vth-gateway",
"--app-port", "6010",
"--placement-host-address", "placement:50006", # Dapr's placement service can be reach via the docker DNS entry
"--resources-path", "./dapr",
"--dapr-grpc-port", "6011",
"--dapr-http-port", "6012",
"--config", "dapr/config/config.yaml"
]
volumes:
- "./dapr/:/dapr" # Mount our components folder for the runtime to use. The mounted location must match the --resources-path argument.
depends_on:
- gateway
- placement
network_mode: "service:gateway" # Attach the gateway-dapr service to the gateway network namespace
example:
image: ghcr.io/azarc-io/verathread-gateway/gateway-be-example:v1.51.1-linux-amd64
environment:
CONFIG_DIR: /config
BASE_CONTEXT: metalogix
DAPR_GRPC_PORT: 6111
volumes:
- ./example/app/config:/config
ports:
- "6110:6110"
depends_on:
- gateway
example-dapr:
image: "daprio/daprd:edge"
command: [
"./daprd",
"--app-id", "vth-gateway-example",
"--app-port", "6110",
"--placement-host-address", "placement:50006", # Dapr's placement service can be reach via the docker DNS entry
"--resources-path", "./dapr",
"--dapr-grpc-port", "6111",
"--dapr-http-port", "6112",
"--config", "dapr/config/config.yaml"
]
volumes:
- "./dapr/:/dapr" # Mount our components folder for the runtime to use. The mounted location must match the --resources-path argument.
depends_on:
- example
- placement
network_mode: "service:example" # Attach the gateway-dapr service to the gateway network namespace
mongodb_dev:
image: mongo:latest
container_name: mongodb_dev
environment:
MONGO_REPLICA_HOST: host.docker.internal
MONGO_REPLICA_PORT: 27018
entrypoint: >
/bin/bash -c '
echo "rs.initiate()" > /docker-entrypoint-initdb.d/1-init-replicaset.js &&
/usr/local/bin/docker-entrypoint.sh mongod --replSet rs0 --bind_ip_all --noauth'
ports:
- "27018:27017"
volumes:
- ./.data/mongodb:/data/db
- ./.data/mongodb/opt:/opt/keyfile/
placement:
image: "daprio/dapr"
command: [ "./placement", "-port", "50006" ]
ports:
- "8080:8080"
- "50006:50006"
environment:
DAPR_PLACEMENT_METADATA_ENABLED: "true"