Skip to content

Commit cb2c7c7

Browse files
committed
Add container labels
1 parent 4fbbb82 commit cb2c7c7

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

docker-compose.yml

Lines changed: 12 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
@@ -45,6 +47,8 @@ services:
4547
#
4648

4749
iot-agent:
50+
labels:
51+
org.fiware: 'tutorial'
4852
image: fiware/iotagent-ul:${ULTRALIGHT_VERSION}
4953
hostname: iot-agent
5054
container_name: fiware-iot-agent
@@ -73,12 +77,15 @@ services:
7377
- IOTA_MQTT_PORT=1883 # The port the MQTT Broker is listening on to receive topics
7478
- IOTA_DEFAULT_RESOURCE= # Default is blank. I'm using MQTT so I don't need a resource
7579
- IOTA_PROVIDER_URL=http://iot-agent:${IOTA_NORTH_PORT}
80+
- IOTA_DEFAULT_TRANSPORT=MQTT
7681
healthcheck:
7782
interval: 5s
7883

7984

8085
# Tutorial acts as a series of dummy IoT Sensors over HTTP
8186
tutorial:
87+
labels:
88+
org.fiware: 'tutorial'
8289
image: fiware/tutorials.context-provider
8390
hostname: iot-sensors
8491
container_name: fiware-tutorial
@@ -115,6 +122,8 @@ services:
115122

116123
# Database
117124
mongo-db:
125+
labels:
126+
org.fiware: 'tutorial'
118127
image: mongo:${MONGO_DB_VERSION}
119128
hostname: mongo-db
120129
container_name: db-mongo
@@ -150,6 +159,8 @@ services:
150159
- default
151160
networks:
152161
default:
162+
labels:
163+
org.fiware: 'tutorial'
153164
ipam:
154165
config:
155166
- subnet: 172.18.1.0/24

0 commit comments

Comments
 (0)