-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
111 lines (103 loc) · 3.34 KB
/
docker-compose.yml
File metadata and controls
111 lines (103 loc) · 3.34 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
version: "3.7"
volumes:
# mongo-db: ~
redisdata: ~
networks:
wn-net:
services:
redis:
image: redis:7-alpine
ports:
- "127.0.0.1:6379:6379"
volumes:
- redisdata:/data
ccfiw:
build:
context: .
depends_on:
- redis
environment:
# - IOTAGENT__APIKEY=XXXXXXXXXXXXX
# - IDM__PASSWORD=XXXXXXXX
# - IDM__USERNAME=XXXXX
# - IDM__SERVICE=XXXXXX
# - IDM__SERVICEPATH=/wifi
# - CCAMPUS__WORKERSSID=Corp
# - CCAMPUS__PASSWORD=XXXXXXXX
# - CCAMPUS__USERNAME=XXXXXXXXX
- REDIS__SERVERS=redis:6379
- REDIS__DATABASE=0
- IOTAGENT__IGNORE_SITES=f5d7d050-e8f1-4040-b1e2-dfd85b469cb2
- IOTAGENT__FORCE_UPDATE=false
# Orion is the context broker
# orion:
# image: fiware/orion:${ORION_VERSION}
# hostname: orion
# depends_on:
# - mongo
# logging:
# driver: "json-file"
# options:
# max-file: "5"
# max-size: "10m"
# links:
# - mongo
# ports:
# - "${ORION_PORT}:${ORION_PORT}" # localhost:1026
# command: -dbhost mongo -logLevel INFO
# networks:
# - wn-net
# healthcheck:
# test: curl --fail -s http://orion:${ORION_PORT}/version || exit 1
# interval: 5s
# mongo:
# image: mongo:${MONGO_DB_VERSION}
# command: --bind_ip_all
# volumes:
# - mongo-db:/data
# logging:
# driver: "json-file"
# options:
# max-file: "5"
# max-size: "10m"
# ports:
# - "127.0.0.1:27017:27017"
# networks:
# - wn-net
# healthcheck:
# test: |
# host=`hostname --ip-address || echo '127.0.0.1'`;
# mongo --quiet $host/test --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 2)' && echo 0 || echo 1
# # IoT-Agent is configured for the JSON Protocol
# iot-agent:
# image: fiware/iotagent-json:${JSON_VERSION}
# hostname: iot-agent
# container_name: fiware-iot-agent
# depends_on:
# - mongo
# networks:
# - wn-net
# expose:
# - "${IOTA_NORTH_PORT}"
# - "${IOTA_SOUTH_PORT}"
# ports:
# - "${IOTA_NORTH_PORT}:${IOTA_NORTH_PORT}" # localhost:4041
# - "${IOTA_SOUTH_PORT}:${IOTA_SOUTH_PORT}" # localhost:7896
# environment:
# - IOTA_CB_HOST=orion # name of the context broker to update context
# - IOTA_CB_PORT=${ORION_PORT} # port the context broker listens on to update context
# - IOTA_NORTH_PORT=${IOTA_NORTH_PORT}
# - IOTA_REGISTRY_TYPE=mongodb #Whether to hold IoT device info in memory or in a database
# - IOTA_LOG_LEVEL=DEBUG # The log level of the IoT Agent
# - IOTA_DEFAULT_EXPRESSION_LANGUAGE=jexl
# - IOTA_TIMESTAMP=true # Supply timestamp information with each measurement
# - IOTA_CB_NGSI_VERSION=v2 # use NGSIv2 when sending updates for active attributes
# - IOTA_AUTOCAST=true # Ensure Ultralight number values are read as numbers not strings
# - IOTA_MONGO_HOST=mongo # The host name of MongoDB
# - IOTA_MONGO_PORT=${MONGO_DB_PORT} # The port mongoDB is listening on
# - IOTA_MONGO_DB=iotagentjson # The name of the database used in mongoDB
# - IOTA_HTTP_PORT=${IOTA_SOUTH_PORT} # The port used for device traffic over HTTP
# - IOTA_PROVIDER_URL=http://iot-agent:${IOTA_NORTH_PORT}
# - IOTA_DEFAULT_RESOURCE=/iot/json
# healthcheck:
# interval: 5s