mirror of
https://gitlab.com/fabinfra/fabaccess/demos-environments/dockercompose.git
synced 2025-03-12 23:01:47 +01:00
Added Mosquitto Config
This commit is contained in:
parent
81905a03ea
commit
3f3ba27ac9
@ -1,48 +0,0 @@
|
|||||||
-- { actor_connections = [] : List { _1 : Text, _2 : Text }
|
|
||||||
{ actor_connections = [{ _1 = "Testmachine", _2 = "Actor" }]
|
|
||||||
, actors =
|
|
||||||
{ Actor = { module = "Shelly", params = {=} }
|
|
||||||
}
|
|
||||||
, init_connections = [] : List { _1 : Text, _2 : Text }
|
|
||||||
--, init_connections = [{ _1 = "Initiator", _2 = "Testmachine" }]
|
|
||||||
, initiators =
|
|
||||||
{ Initiator = { module = "Dummy", params = {=} }
|
|
||||||
}
|
|
||||||
, listens =
|
|
||||||
[ { address = "::", port = Some 59661 }
|
|
||||||
]
|
|
||||||
, machines =
|
|
||||||
{ Testmachine =
|
|
||||||
{ description = Some "A test machine"
|
|
||||||
, disclose = "lab.test.read"
|
|
||||||
, manage = "lab.test.admin"
|
|
||||||
, name = "Testmachine"
|
|
||||||
, read = "lab.test.read"
|
|
||||||
, write = "lab.test.write"
|
|
||||||
},
|
|
||||||
Another =
|
|
||||||
{ description = Some "Another test machine"
|
|
||||||
, disclose = "lab.test.read"
|
|
||||||
, manage = "lab.test.admin"
|
|
||||||
, name = "Another"
|
|
||||||
, read = "lab.test.read"
|
|
||||||
, write = "lab.test.write"
|
|
||||||
},
|
|
||||||
Yetmore =
|
|
||||||
{ description = Some "Yet more test machines"
|
|
||||||
, disclose = "lab.test.read"
|
|
||||||
, manage = "lab.test.admin"
|
|
||||||
, name = "Yetmore"
|
|
||||||
, read = "lab.test.read"
|
|
||||||
, write = "lab.test.write"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
, mqtt_url = "tcp://mqtt:1883"
|
|
||||||
, db_path = "/tmp/bffh"
|
|
||||||
, roles =
|
|
||||||
{ Testrole =
|
|
||||||
{ parents = [] : List Text
|
|
||||||
, permissions = [] : List Text
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1 +0,0 @@
|
|||||||
Testuser = "secret"
|
|
@ -1,19 +0,0 @@
|
|||||||
[anotherrole]
|
|
||||||
|
|
||||||
[testrole]
|
|
||||||
permissions = [
|
|
||||||
"lab.test.*"
|
|
||||||
]
|
|
||||||
|
|
||||||
[somerole]
|
|
||||||
parents = ["testparent/lmdb"]
|
|
||||||
permissions = [
|
|
||||||
"lab.some.admin"
|
|
||||||
]
|
|
||||||
|
|
||||||
[testparent]
|
|
||||||
permissions = [
|
|
||||||
"lab.some.write",
|
|
||||||
"lab.some.read",
|
|
||||||
"lab.some.disclose",
|
|
||||||
]
|
|
@ -1,11 +0,0 @@
|
|||||||
[Testuser]
|
|
||||||
# Define them in roles.toml as well
|
|
||||||
roles = ["somerole/lmdb", "testrole/lmdb"]
|
|
||||||
|
|
||||||
# If two or more users want to use the same machine at once the higher prio
|
|
||||||
# wins
|
|
||||||
priority = 0
|
|
||||||
|
|
||||||
# You can add whatever random data you want.
|
|
||||||
# It will get stored in the `kv` field in UserData.
|
|
||||||
noot = "noot!"
|
|
@ -8,8 +8,13 @@ services:
|
|||||||
- "59661:59661"
|
- "59661:59661"
|
||||||
volumes:
|
volumes:
|
||||||
# generate a sample config.toml by running "docker run registry.gitlab.com/fabinfra/fabaccess/bffh:dev-latest --print-default > examples/config.toml" from the project root. You may have to delete the ipv6 listen section.
|
# generate a sample config.toml by running "docker run registry.gitlab.com/fabinfra/fabaccess/bffh:dev-latest --print-default > examples/config.toml" from the project root. You may have to delete the ipv6 listen section.
|
||||||
- "./config:/etc/bffh"
|
- "./config/bffh:/etc/bffh"
|
||||||
links:
|
links:
|
||||||
- mqtt
|
- mqtt
|
||||||
mqtt:
|
mqtt:
|
||||||
image: eclipse-mosquitto:1.6.13
|
image: eclipse-mosquitto:1.6.13
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- "1883:1883"
|
||||||
|
volumes:
|
||||||
|
- "./config/mosquitto:/mosquitto/config"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user