forked from N5GEH/n5geh.tutorials.from_sensor_to_application
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
39 lines (37 loc) · 1.21 KB
/
docker-compose.yml
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
version: '3.8'
services:
Simulation:
container_name: virtual_device
hostname: virtual_device
image: virtual_device # keep the same with your local image name
restart: always
volumes:
# bind mount the secret on the local file. The secret has to be updated in the local file
- ./devices/simulation.py:/app/simulation.py
ports:
- "8001:8000"
environment:
- GATEWAY_HOST=gateway
- GATEWAY_PORT=5000
networks:
- n5gehtutorial
Gateway:
container_name: gateway
hostname: gateway
image: gateway
restart: always
volumes:
- ./gateway/devices.json:/app/devices.json
- ./gateway/mapping.json:/app/mapping.json
- ./gateway/mqttclient.py:/app/mqttclient.py
- ./gateway/socketinterface.py:/app/socketinterface.py
- ./gateway/socket2mqtt.py:/app/socket2mqtt.py
environment:
# Fiware platform information
- IOTA_URL=http://host.docker.internal:4041 # host.docker.internal in the container maps up with the localhost
- MQTT_HOST=host.docker.internal # host.docker.internal in the container maps up with the localhost
- MQTT_PORT=1883
networks:
- n5gehtutorial
networks:
n5gehtutorial: