-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.example.yml
112 lines (104 loc) · 2.81 KB
/
docker-compose.example.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
version: '2.4'
networks:
dataservicedevelopmentkit_default:
name: dataservicedevelopmentkit_default
proxy-redirect:
name: proxy-redirect
volumes:
db-edge-apps-dataservicedevelopmentkit-volume:
db-edge-apps-simulation-volume:
node-red-data:
services:
# Database
db-edge-apps-dataservicedevelopmentkit:
image: postgres:9.6.16-alpine
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 10
volumes:
- type: volume
source: db-edge-apps-dataservicedevelopmentkit-volume
target: /var/lib/postgresql/data
mem_limit: 128mb
networks:
- dataservicedevelopmentkit_default
restart: unless-stopped
# MQTT Broker
simulation-broker:
image: eclipse-mosquitto:1.6.10
networks:
- dataservicedevelopmentkit_default
ports:
- 11883:1883
mem_limit: 128mb
restart: unless-stopped
# Services
edgeappdataservice:
image: siemensindustrialedge/dataservicedevelopmentkit:1.8.0
environment:
- EXTENDED_ERRORS=true
- LOG_DEBUG_INFO=true
ports:
- 4203:4203
networks:
- dataservicedevelopmentkit_default
- proxy-redirect
depends_on:
db-edge-apps-dataservicedevelopmentkit:
condition: service_healthy
mem_limit: 256mb
restart: unless-stopped
simulation:
image: siemensindustrialedge/dataservicesimulation:1.5.2
environment:
- PLATFORM=edge
- OPERATOR_PLAN=edge
- DBSERVICETYPE=postgres
- DBSERVICE=Edge
- EXTENDED_ERRORS=true
- LOG_DEBUG_INFO=true
- MQTT_BROKER_URL=tcp://simulation-broker:1883
- MQTT_BROKER_USR=
- MQTT_BROKER_PSW=
- SIM_MODE=MQTT
- AUTHENTICATION_MODE=sim-edge
- APPLICATION_NAME=edgeappdataservice
- POSTGRES_DB_FILE=/run/postgres-db
- POSTGRES_USER_FILE=/run/postgres-user
- POSTGRES_PASSWORD_FILE=/run/postgres-passwd
- START_POSTGRES=1
- POSTGRES_START_ARGS=-B 1MB
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 5s
timeout: 5s
retries: 10
ports:
- 4519:4519
networks:
- dataservicedevelopmentkit_default
- proxy-redirect
mem_limit: 128mb
volumes:
- '/tmp/siemens/automation:/tmp/siemens/automation'
- type: volume
source: db-edge-apps-simulation-volume
target: /var/lib/postgresql/data
restart: unless-stopped
node-red:
image: nodered/node-red:3.1.5
ports:
- 1880:1880
privileged: true
networks:
- dataservicedevelopmentkit_default
- proxy-redirect
volumes:
- node-red-data:/data
- './export:/home/nodered/node-red-home/_report'