-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose-edgex.yml
114 lines (114 loc) · 2.88 KB
/
docker-compose-edgex.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
name: edgex
services:
consul:
command:
- agent
- -ui
- -bootstrap
- -server
- -client
- 0.0.0.0
container_name: edgex-core-consul
hostname: edgex-core-consul
image: hashicorp/consul:1.15.2
networks:
edgex-network: null
ports:
- mode: ingress
host_ip: 127.0.0.1
target: 8500
published: "8500"
protocol: tcp
read_only: true
restart: always
security_opt:
- no-new-privileges:true
user: root:root
volumes:
- type: volume
source: consul-config
target: /consul/config
volume: {}
- type: volume
source: consul-data
target: /consul/data
volume: {}
core-common-config-bootstrapper:
container_name: edgex-core-common-config-bootstrapper
depends_on:
consul:
condition: service_started
environment:
ALL_SERVICES_DATABASE_HOST: edgex-redis
ALL_SERVICES_MESSAGEBUS_AUTHMODE: none
ALL_SERVICES_MESSAGEBUS_HOST: edgex-mqtt-broker
ALL_SERVICES_MESSAGEBUS_PORT: "1883"
ALL_SERVICES_MESSAGEBUS_PROTOCOL: tcp
ALL_SERVICES_MESSAGEBUS_TYPE: mqtt
ALL_SERVICES_REGISTRY_HOST: edgex-core-consul
APP_SERVICES_CLIENTS_CORE_METADATA_HOST: edgex-core-metadata
DEVICE_SERVICES_CLIENTS_CORE_METADATA_HOST: edgex-core-metadata
EDGEX_SECURITY_SECRET_STORE: "false"
hostname: edgex-core-common-config-bootstrapper
image: edgexfoundry/core-common-config-bootstrapper:3.0.0
networks:
edgex-network: null
read_only: true
security_opt:
- no-new-privileges:true
user: 2002:2001
mqtt-broker:
command:
- /usr/sbin/mosquitto
- -c
- /mosquitto-no-auth.conf
container_name: edgex-mqtt-broker
hostname: edgex-mqtt-broker
image: eclipse-mosquitto:2.0.15
networks:
edgex-network: null
ports:
- mode: ingress
host_ip: 127.0.0.1
target: 1883
published: "1883"
protocol: tcp
read_only: true
restart: always
security_opt:
- no-new-privileges:true
user: 2002:2001
core-metadata:
container_name: edgex-core-metadata
depends_on:
consul:
condition: service_started
# database:
# condition: service_started
environment:
EDGEX_SECURITY_SECRET_STORE: "false"
SERVICE_HOST: edgex-core-metadata
hostname: edgex-core-metadata
image: edgexfoundry/core-metadata:3.0.0
networks:
edgex-network: null
ports:
- mode: ingress
host_ip: 127.0.0.1
target: 59881
published: "59881"
protocol: tcp
read_only: true
restart: always
security_opt:
- no-new-privileges:true
user: 2002:2001
networks:
edgex-network:
name: edgex_edgex-network
driver: bridge
volumes:
consul-config:
name: edgex_consul-config
consul-data:
name: edgex_consul-data