Skip to content

Commit 1e01cf0

Browse files
committed
Add container labels
1 parent 5e46376 commit 1e01cf0

1 file changed

Lines changed: 19 additions & 2 deletions

File tree

docker-compose.yml

Lines changed: 19 additions & 2 deletions
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
@@ -39,6 +41,8 @@ services:
3941

4042
# IoT-Agent is configured for the UltraLight Protocol
4143
iot-agent:
44+
labels:
45+
org.fiware: 'tutorial'
4246
image: fiware/iotagent-ul:${ULTRALIGHT_VERSION}
4347
hostname: iot-agent
4448
container_name: fiware-iot-agent
@@ -70,6 +74,8 @@ services:
7074

7175
# Keyrock is an Identity Management Front-End
7276
keyrock:
77+
labels:
78+
org.fiware: 'tutorial'
7379
image: fiware/idm:${KEYROCK_VERSION}
7480
container_name: fiware-keyrock
7581
hostname: keyrock
@@ -102,8 +108,9 @@ services:
102108

103109
# Authzforce is a XACML Server PDP
104110
authzforce:
111+
labels:
112+
org.fiware: 'tutorial'
105113
image: fiware/authzforce-ce-server:release-8.1.0
106-
hostname: authzforce
107114
container_name: fiware-authzforce
108115
networks:
109116
default:
@@ -118,6 +125,8 @@ services:
118125

119126
# PEP Proxy
120127
orion-proxy:
128+
labels:
129+
org.fiware: 'tutorial'
121130
image: fiware/pep-proxy:${WILMA_VERSION}
122131
container_name: fiware-orion-proxy
123132
hostname: orion-proxy
@@ -161,6 +170,8 @@ services:
161170

162171
# Tutorial acts as a series of dummy IoT Sensors over HTTP
163172
tutorial:
173+
labels:
174+
org.fiware: 'tutorial'
164175
image: fiware/tutorials.context-provider
165176
hostname: iot-sensors
166177
container_name: fiware-tutorial
@@ -210,6 +221,8 @@ services:
210221

211222
# Databases
212223
mongo-db:
224+
labels:
225+
org.fiware: 'tutorial'
213226
image: mongo:${MONGO_DB_VERSION}
214227
hostname: mongo-db
215228
container_name: db-mongo
@@ -230,6 +243,8 @@ services:
230243

231244
mysql-db:
232245
restart: always
246+
labels:
247+
org.fiware: 'tutorial'
233248
image: mysql:${MYSQL_DB_VERSION}
234249
hostname: mysql-db
235250
container_name: db-mysql
@@ -250,6 +265,8 @@ services:
250265
- my_secret_data
251266
networks:
252267
default:
268+
labels:
269+
org.fiware: 'tutorial'
253270
ipam:
254271
config:
255272
- subnet: 172.18.1.0/24

0 commit comments

Comments
 (0)