-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
199 lines (193 loc) · 4.77 KB
/
Copy pathcompose.yaml
File metadata and controls
199 lines (193 loc) · 4.77 KB
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
services:
localdb:
user: 499:499
build: localdb
container_name: localdb
volumes:
- ./localdb:/localdb
- /scratch/opt/logbook-attachments:/attachments
environment:
- MONGO_DB_NAME=prod_db
- MONGO_URI=mongodb://${MONGODB_INITDB_ROOT_USERNAME}:${MONGODB_INITDB_ROOT_PASSWORD}@mongodb:27017
- TESTING=False
sysctls:
- "net.ipv4.ping_group_range=0 100000"
- "net.ipv6.conf.all.disable_ipv6=1"
restart: always
ports:
- "5000:5000"
logging:
options:
max-size: 50m
caen:
user: 499:499
build: caen
container_name: caen
environment:
- TZ=Europe/Rome
sysctls:
- "net.ipv4.ping_group_range=0 100000"
volumes:
- ./caenconfig.xml:/config.xml
- ./caen/caen_server.sh:/caen_server.sh
# - ./CAENHVWrapper-6.3.tgz:/CAENHVWrapper-6.3.tgz
restart: always
ports:
- "7000:7000"
logging:
options:
max-size: 50m
marta-mqtt:
user: 499:499
build: marta-mqtt
container_name: marta-mqtt
volumes:
- ./marta_registers.yml:/marta_registers.yml
- ./marta-mqtt/:/scripts/
restart: always
logging:
driver: "k8s-file"
options:
max_size: "50m"
max_backups: "3"
testnode:
build: testnode
volumes:
- type: bind
source: ${DATA_PREFIX}/scratch/opt/testnode
target: /opt
logging:
options:
max-size: 50m
ble-mqtt:
user: 0:0
container_name: ble-mqtt
build: ble-mqtt
privileged: true
tty: true
stdin_open: true
restart: always
network_mode: host
volumes:
- /var/run/dbus/:/var/run/dbus/:z
- ./ble-mqtt/:/scripts/
#depends_on:
# - mosquitto
logging:
options:
max-size: 50m
coldroom-mqtt:
container_name: coldroom-mqtt
user: 499:499
build: coldroom-mqtt
restart: always
environment:
- COLDROOM_USERNAME=${COLDROOM_USERNAME}
- COLDROOM_PASSWORD=${COLDROOM_PASSWORD}
# depends_on:
# - mosquitto
logging:
options:
max-size: 50m
volumes:
- ./coldroom-mqtt/:/scripts/
caen-mqtt:
container_name: caen-mqtt
user: 499:499
build: caen-mqtt
restart: always
# depends_on:
# - caen
# - mosquitto
logging:
options:
max-size: 50m
volumes:
- ./caen-mqtt/:/scripts/
mosquitto:
image: eclipse-mosquitto
user: 499:499
volumes:
- ./mosquitto.conf:/mosquitto/config/mosquitto.conf
- ${DATA_PREFIX}/mosquitto/log:/mosquitto/log
- ${DATA_PREFIX}/mosquitto/data/:/mosquitto/data
restart: always
ports:
- "1883:1883"
container_name: mosquitto
logging:
options:
max-size: 50m
influxdb:
user: 499:499
image: influxdb
container_name: influxdb
restart: always
ports:
- "8086:8086"
volumes:
- ${DATA_PREFIX}/influxdb/influxdb-data:/var/lib/influxdb2
- ${DATA_PREFIX}/influxdb-config/:/etc/influxdb2
environment:
- DOCKER_INFLUXDB_INIT_MODE=${INITMODE}
- DOCKER_INFLUXDB_INIT_USERNAME=${INFLUXUSER}
- DOCKER_INFLUXDB_INIT_PASSWORD=${INFLUXPASSWORD}
- DOCKER_INFLUXDB_INIT_ORG=pisaoutertracker
- DOCKER_INFLUXDB_INIT_BUCKET=sensor_data
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=${INFLUXTOKEN}
logging:
options:
max-size: 50m
telegraf:
user: 499:499
image: telegraf
container_name: telegraf
restart: always
volumes:
- ./telegraf.conf:/etc/telegraf/telegraf.conf:ro
# depends_on:
# - mosquitto
# - influxdb
logging:
options:
max-size: 50m
grafana:
user: 499:499
image: grafana/grafana
container_name: grafana
restart: always
ports:
- "3000:3000"
volumes:
- ./grafana-provisioning:/etc/grafana/provisioning
- ${DATA_PREFIX}/grafana/grafana-data:/var/lib/grafana
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
# depends_on:
# - influxdb
logging:
options:
max-size: 50m
# mongodbtestapp:
# image: mongodb/mongodb-community-server:6.0-ubi8
# environment:
# - CONN_STR=mongodb://${MONGODB_INITDB_ROOT_USERNAME}:${MONGODB_INITDB_ROOT_PASSWORD}@mongodb
# command: '/bin/bash -c "sleep 5; mongosh $$CONN_STR --eval \"show dbs;\""'
# depends_on:
# - mongodb
mongodb:
container_name: mongodb
image: mongodb/mongodb-community-server:6.0-ubi8
user: 499:499
environment:
- MONGODB_INITDB_ROOT_USERNAME=${MONGODB_INITDB_ROOT_USERNAME}
- MONGODB_INITDB_ROOT_PASSWORD=${MONGODB_INITDB_ROOT_PASSWORD}
volumes:
- type: bind
source: /scratch/opt/MongoDB/data
target: /data/db
ports:
- "27017:27017"
logging:
options:
max-size: 50m