Skip to content

Commit 095b648

Browse files
committed
Add container labels
1 parent 5ff2e8a commit 095b648

2 files changed

Lines changed: 22 additions & 2 deletions

File tree

docker-compose/cygnus-sth-comet.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
version: "3.5"
1+
version: "3.8"
22
services:
33
# Orion is the context broker
44
orion:
5+
labels:
6+
org.fiware: 'tutorial'
57
image: fiware/orion:${ORION_VERSION}
68
hostname: orion
79
container_name: fiware-orion
@@ -65,6 +67,8 @@ services:
6567

6668
# IoT-Agent is configured for the UltraLight Protocol
6769
iot-agent:
70+
labels:
71+
org.fiware: 'tutorial'
6872
image: fiware/iotagent-ul:${ULTRALIGHT_VERSION}
6973
hostname: iot-agent
7074
container_name: fiware-iot-agent
@@ -95,6 +99,8 @@ services:
9599

96100
# Tutorial acts as a series of dummy IoT Sensors over HTTP
97101
tutorial:
102+
labels:
103+
org.fiware: 'tutorial'
98104
image: fiware/tutorials.context-provider
99105
hostname: iot-sensors
100106
container_name: fiware-tutorial
@@ -134,6 +140,8 @@ services:
134140

135141
# Database
136142
mongo-db:
143+
labels:
144+
org.fiware: 'tutorial'
137145
image: mongo:${MONGO_DB_VERSION}
138146
hostname: mongo-db
139147
container_name: db-mongo
@@ -154,6 +162,8 @@ services:
154162

155163
networks:
156164
default:
165+
labels:
166+
org.fiware: 'tutorial'
157167
ipam:
158168
config:
159169
- subnet: 172.18.1.0/24

docker-compose/sth-comet.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@
1616
#
1717
# see: https://github.com/FIWARE/helm-charts/
1818
#
19-
version: "3.5"
19+
version: "3.8"
2020
services:
2121
# Orion is the context broker
2222
orion:
23+
labels:
24+
org.fiware: 'tutorial'
2325
image: fiware/orion:${ORION_VERSION}
2426
hostname: orion
2527
container_name: fiware-orion
@@ -58,6 +60,8 @@ services:
5860

5961
# IoT-Agent is configured for the UltraLight Protocol
6062
iot-agent:
63+
labels:
64+
org.fiware: 'tutorial'
6165
image: fiware/iotagent-ul:${ULTRALIGHT_VERSION}
6266
hostname: iot-agent
6367
container_name: fiware-iot-agent
@@ -88,6 +92,8 @@ services:
8892

8993
# Tutorial acts as a series of dummy IoT Sensors over HTTP
9094
tutorial:
95+
labels:
96+
org.fiware: 'tutorial'
9197
image: fiware/tutorials.context-provider
9298
hostname: iot-sensors
9399
container_name: fiware-tutorial
@@ -126,6 +132,8 @@ services:
126132

127133
# Database
128134
mongo-db:
135+
labels:
136+
org.fiware: 'tutorial'
129137
image: mongo:${MONGO_DB_VERSION}
130138
hostname: mongo-db
131139
container_name: db-mongo
@@ -145,6 +153,8 @@ services:
145153

146154
networks:
147155
default:
156+
labels:
157+
org.fiware: 'tutorial'
148158
ipam:
149159
config:
150160
- subnet: 172.18.1.0/24

0 commit comments

Comments
 (0)