1
0
mirror of https://github.com/daniviga/bite.git synced 2025-04-18 22:00:11 +02:00

Create an EDGE gateway via dind

This commit is contained in:
Daniele Viganò 2020-06-03 19:16:16 +02:00
parent 05e7664da8
commit 28ed208f95
Signed by: dani
GPG Key ID: DB49AFC03C40EE02
2 changed files with 25 additions and 0 deletions

6
docker/edge/README.md Normal file
View File

@ -0,0 +1,6 @@
EDGE device (docker-in-docker)
```bash
export DOCKER_HOST='127.0.0.1:22375'
docker-compose -f docker-compose.edge.yml up -d --scale device-http=4
```

View File

@ -0,0 +1,19 @@
version: "3.7"
networks:
localnet:
x-op-service-default: &service_default
restart: unless-stopped
init: true
services:
device-http:
<<: *service_default
image: daniviga/freedcs-device-http
environment:
IOT_HOST: "http://192.168.10.123:8000"
# IOT_SERIAL: "abcd1234"
# IOT_DELAY: 10
networks:
- localnet