mirror of
https://github.com/absmach/supermq.git
synced 2026-06-23 04:30:25 +00:00
NOISSUE - Update Docker and Compose versions (#2159)
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com>
This commit is contained in:
@@ -4,7 +4,7 @@ SPDX-License-Identifier: Apache-2.0 -->
|
|||||||
<!--
|
<!--
|
||||||
|
|
||||||
Pull request title should be `MG-XXX - description` or `NOISSUE - description` where XXX is ID of the issue that this PR relate to.
|
Pull request title should be `MG-XXX - description` or `NOISSUE - description` where XXX is ID of the issue that this PR relate to.
|
||||||
Please review the [CONTRIBUTING.md](https://github.com/absmach/magistrala/blob/master/CONTRIBUTING.md) file for detailed contributing guidelines.
|
Please review the [CONTRIBUTING.md](https://github.com/absmach/magistrala/blob/main/CONTRIBUTING.md) file for detailed contributing guidelines.
|
||||||
|
|
||||||
For Work In Progress Pull Requests, please use the Draft PR feature, see https://github.blog/2019-02-14-introducing-draft-pull-requests/ for further details.
|
For Work In Progress Pull Requests, please use the Draft PR feature, see https://github.blog/2019-02-14-introducing-draft-pull-requests/ for further details.
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -33,4 +33,4 @@ Pull request commit must be [signed](https://docs.github.com/en/github/authentic
|
|||||||
## Adopters list (alphabetical)
|
## Adopters list (alphabetical)
|
||||||
|
|
||||||
|
|
||||||
**Note:** The list is maintained by the users themselves. If you find yourself on this list, and you think it's inappropriate. Please contact [project maintainers](https://github.com/absmach/magistrala/blob/master/MAINTAINERS) and you will be permanently removed from the list.
|
**Note:** The list is maintained by the users themselves. If you find yourself on this list, and you think it's inappropriate. Please contact [project maintainers](https://github.com/absmach/magistrala/blob/main/MAINTAINERS) and you will be permanently removed from the list.
|
||||||
|
|||||||
@@ -38,8 +38,7 @@ For more details, check out the [official documentation][docs].
|
|||||||
|
|
||||||
The following are needed to run Magistrala:
|
The following are needed to run Magistrala:
|
||||||
|
|
||||||
- [Docker](https://docs.docker.com/install/) (version 24.0.7)
|
- [Docker](https://docs.docker.com/install/) (version 26.0.0)
|
||||||
- [Docker compose](https://docs.docker.com/compose/install/) (version 2.24.0)
|
|
||||||
|
|
||||||
Developing Magistrala will also require:
|
Developing Magistrala will also require:
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
asyncapi: '2.6.0'
|
asyncapi: '2.6.0'
|
||||||
id: 'https://github.com/absmach/magistrala/blob/master/api/asyncapi/mqtt.yml'
|
id: 'https://github.com/absmach/magistrala/blob/main/api/asyncapi/mqtt.yml'
|
||||||
info:
|
info:
|
||||||
title: Magistrala MQTT Adapter
|
title: Magistrala MQTT Adapter
|
||||||
version: '1.0.0'
|
version: '1.0.0'
|
||||||
@@ -16,7 +16,7 @@ info:
|
|||||||
|
|
||||||
license:
|
license:
|
||||||
name: Apache 2.0
|
name: Apache 2.0
|
||||||
url: 'https://github.com/absmach/magistrala/blob/master/LICENSE'
|
url: 'https://github.com/absmach/magistrala/blob/main/LICENSE'
|
||||||
|
|
||||||
|
|
||||||
defaultContentType: application/json
|
defaultContentType: application/json
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
asyncapi: 2.6.0
|
asyncapi: 2.6.0
|
||||||
id: 'https://github.com/absmach/magistrala/blob/master/api/asyncapi/websocket.yml'
|
id: 'https://github.com/absmach/magistrala/blob/main/api/asyncapi/websocket.yml'
|
||||||
info:
|
info:
|
||||||
title: Magistrala WebSocket adapter
|
title: Magistrala WebSocket adapter
|
||||||
description: WebSocket adapter provides a WebSocket API for sending messages through communication channels. WebSocket adapter uses [mProxy](https://github.com/absmach/mproxy) for proxying traffic between client and MQTT broker.
|
description: WebSocket adapter provides a WebSocket API for sending messages through communication channels. WebSocket adapter uses [mProxy](https://github.com/absmach/mproxy) for proxying traffic between client and MQTT broker.
|
||||||
@@ -13,7 +13,7 @@ info:
|
|||||||
email: info@abstractmachines.fr
|
email: info@abstractmachines.fr
|
||||||
license:
|
license:
|
||||||
name: Apache 2.0
|
name: Apache 2.0
|
||||||
url: 'https://github.com/absmach/magistrala/blob/master/LICENSE'
|
url: 'https://github.com/absmach/magistrala/blob/main/LICENSE'
|
||||||
tags:
|
tags:
|
||||||
- name: WebSocket
|
- name: WebSocket
|
||||||
defaultContentType: application/json
|
defaultContentType: application/json
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ info:
|
|||||||
email: info@abstractmachines.fr
|
email: info@abstractmachines.fr
|
||||||
license:
|
license:
|
||||||
name: Apache 2.0
|
name: Apache 2.0
|
||||||
url: https://github.com/absmach/magistrala/blob/master/LICENSE
|
url: https://github.com/absmach/magistrala/blob/main/LICENSE
|
||||||
version: 0.14.0
|
version: 0.14.0
|
||||||
|
|
||||||
servers:
|
servers:
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ info:
|
|||||||
email: info@abstractmachines.fr
|
email: info@abstractmachines.fr
|
||||||
license:
|
license:
|
||||||
name: Apache 2.0
|
name: Apache 2.0
|
||||||
url: https://github.com/absmach/magistrala/blob/master/LICENSE
|
url: https://github.com/absmach/magistrala/blob/main/LICENSE
|
||||||
version: 0.14.0
|
version: 0.14.0
|
||||||
|
|
||||||
servers:
|
servers:
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ info:
|
|||||||
email: info@abstractmachines.fr
|
email: info@abstractmachines.fr
|
||||||
license:
|
license:
|
||||||
name: Apache 2.0
|
name: Apache 2.0
|
||||||
url: https://github.com/absmach/magistrala/blob/master/LICENSE
|
url: https://github.com/absmach/magistrala/blob/main/LICENSE
|
||||||
version: 0.14.0
|
version: 0.14.0
|
||||||
|
|
||||||
servers:
|
servers:
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ info:
|
|||||||
email: info@abstractmachines.fr
|
email: info@abstractmachines.fr
|
||||||
license:
|
license:
|
||||||
name: Apache 2.0
|
name: Apache 2.0
|
||||||
url: https://github.com/absmach/magistrala/blob/master/LICENSE
|
url: https://github.com/absmach/magistrala/blob/main/LICENSE
|
||||||
version: 0.14.0
|
version: 0.14.0
|
||||||
|
|
||||||
servers:
|
servers:
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ info:
|
|||||||
email: info@abstractmachines.fr
|
email: info@abstractmachines.fr
|
||||||
license:
|
license:
|
||||||
name: Apache 2.0
|
name: Apache 2.0
|
||||||
url: https://github.com/absmach/magistrala/blob/master/LICENSE
|
url: https://github.com/absmach/magistrala/blob/main/LICENSE
|
||||||
version: 0.14.0
|
version: 0.14.0
|
||||||
|
|
||||||
servers:
|
servers:
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ info:
|
|||||||
email: info@abstractmachines.fr
|
email: info@abstractmachines.fr
|
||||||
license:
|
license:
|
||||||
name: Apache 2.0
|
name: Apache 2.0
|
||||||
url: https://github.com/absmach/magistrala/blob/master/LICENSE
|
url: https://github.com/absmach/magistrala/blob/main/LICENSE
|
||||||
version: 0.14.0
|
version: 0.14.0
|
||||||
|
|
||||||
servers:
|
servers:
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ info:
|
|||||||
email: info@abstracmachines.fr
|
email: info@abstracmachines.fr
|
||||||
license:
|
license:
|
||||||
name: Apache 2.0
|
name: Apache 2.0
|
||||||
url: https://github.com/absmach/magistrala/blob/master/LICENSE
|
url: https://github.com/absmach/magistrala/blob/main/LICENSE
|
||||||
version: 0.14.0
|
version: 0.14.0
|
||||||
|
|
||||||
servers:
|
servers:
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ info:
|
|||||||
email: info@abstractmachines.fr
|
email: info@abstractmachines.fr
|
||||||
license:
|
license:
|
||||||
name: Apache 2.0
|
name: Apache 2.0
|
||||||
url: https://github.com/absmach/magistrala/blob/master/LICENSE
|
url: https://github.com/absmach/magistrala/blob/main/LICENSE
|
||||||
version: 0.14.0
|
version: 0.14.0
|
||||||
|
|
||||||
servers:
|
servers:
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ info:
|
|||||||
email: info@abstractmachines.fr
|
email: info@abstractmachines.fr
|
||||||
license:
|
license:
|
||||||
name: Apache 2.0
|
name: Apache 2.0
|
||||||
url: https://github.com/absmach/magistrala/blob/master/LICENSE
|
url: https://github.com/absmach/magistrala/blob/main/LICENSE
|
||||||
version: 0.14.0
|
version: 0.14.0
|
||||||
|
|
||||||
servers:
|
servers:
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ info:
|
|||||||
email: info@abstractmachines.fr
|
email: info@abstractmachines.fr
|
||||||
license:
|
license:
|
||||||
name: Apache 2.0
|
name: Apache 2.0
|
||||||
url: https://github.com/absmach/magistrala/blob/master/LICENSE
|
url: https://github.com/absmach/magistrala/blob/main/LICENSE
|
||||||
version: 0.14.0
|
version: 0.14.0
|
||||||
|
|
||||||
servers:
|
servers:
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ info:
|
|||||||
email: info@abstractmachines.fr
|
email: info@abstractmachines.fr
|
||||||
license:
|
license:
|
||||||
name: Apache 2.0
|
name: Apache 2.0
|
||||||
url: https://github.com/absmach/magistrala/blob/master/LICENSE
|
url: https://github.com/absmach/magistrala/blob/main/LICENSE
|
||||||
version: 0.14.0
|
version: 0.14.0
|
||||||
|
|
||||||
servers:
|
servers:
|
||||||
|
|||||||
+1
-1
@@ -96,7 +96,7 @@ The service is configured using the environment variables presented in the follo
|
|||||||
|
|
||||||
## Deployment
|
## Deployment
|
||||||
|
|
||||||
The service itself is distributed as Docker container. Check the [`auth`](https://github.com/absmach/magistrala/blob/master/docker/docker-compose.yml) service section in docker-compose to see how service is deployed.
|
The service itself is distributed as Docker container. Check the [`auth`](https://github.com/absmach/magistrala/blob/main/docker/docker-compose.yml) service section in docker-compose file to see how service is deployed.
|
||||||
|
|
||||||
Running this service outside of container requires working instance of the postgres database, SpiceDB, and Jaeger server.
|
Running this service outside of container requires working instance of the postgres database, SpiceDB, and Jaeger server.
|
||||||
To start the service outside of the container, execute the following shell script:
|
To start the service outside of the container, execute the following shell script:
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ func TestMain(m *testing.M) {
|
|||||||
|
|
||||||
container, err := pool.RunWithOptions(&dockertest.RunOptions{
|
container, err := pool.RunWithOptions(&dockertest.RunOptions{
|
||||||
Repository: "postgres",
|
Repository: "postgres",
|
||||||
Tag: "16.1-alpine",
|
Tag: "16.2-alpine",
|
||||||
Env: []string{
|
Env: []string{
|
||||||
"POSTGRES_USER=test",
|
"POSTGRES_USER=test",
|
||||||
"POSTGRES_PASSWORD=test",
|
"POSTGRES_PASSWORD=test",
|
||||||
|
|||||||
+2
-2
@@ -67,7 +67,7 @@ The service is configured using the environment variables presented in the follo
|
|||||||
|
|
||||||
## Deployment
|
## Deployment
|
||||||
|
|
||||||
The service itself is distributed as Docker container. Check the [`boostrap`](https://github.com/absmach/magistrala/blob/master/docker/addons/bootstrap/docker-compose.yml) service section in docker-compose to see how service is deployed.
|
The service itself is distributed as Docker container. Check the [`bootstrap`](https://github.com/absmach/magistrala/blob/main/docker/addons/bootstrap/docker-compose.yml) service section in docker-compose file to see how service is deployed.
|
||||||
|
|
||||||
To start the service outside of the container, execute the following shell script:
|
To start the service outside of the container, execute the following shell script:
|
||||||
|
|
||||||
@@ -77,7 +77,7 @@ git clone https://github.com/absmach/magistrala
|
|||||||
|
|
||||||
cd magistrala
|
cd magistrala
|
||||||
|
|
||||||
# compile the service
|
# compile the servic e
|
||||||
make bootstrap
|
make bootstrap
|
||||||
|
|
||||||
# copy binary to bin
|
# copy binary to bin
|
||||||
|
|||||||
@@ -76,10 +76,10 @@ func (lm *loggingMiddleware) Update(ctx context.Context, token string, cfg boots
|
|||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
args = append(args, slog.Any("error", err))
|
args = append(args, slog.Any("error", err))
|
||||||
lm.logger.Warn("Update boostrap config failed to complete successfully", args...)
|
lm.logger.Warn("Update bootstrap config failed to complete successfully", args...)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
lm.logger.Info("Update boostrap config completed successfully", args...)
|
lm.logger.Info("Update bootstrap config completed successfully", args...)
|
||||||
}(time.Now())
|
}(time.Now())
|
||||||
|
|
||||||
return lm.svc.Update(ctx, token, cfg)
|
return lm.svc.Update(ctx, token, cfg)
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ func TestMain(m *testing.M) {
|
|||||||
|
|
||||||
container, err := pool.RunWithOptions(&dockertest.RunOptions{
|
container, err := pool.RunWithOptions(&dockertest.RunOptions{
|
||||||
Repository: "postgres",
|
Repository: "postgres",
|
||||||
Tag: "16.1-alpine",
|
Tag: "16.2-alpine",
|
||||||
Env: []string{
|
Env: []string{
|
||||||
"POSTGRES_USER=test",
|
"POSTGRES_USER=test",
|
||||||
"POSTGRES_PASSWORD=test",
|
"POSTGRES_PASSWORD=test",
|
||||||
|
|||||||
+2
-2
@@ -9,7 +9,7 @@ When `MG_CERTS_VAULT_HOST` is set it is presumed that `Vault` is installed and `
|
|||||||
First you'll need to set up `Vault`.
|
First you'll need to set up `Vault`.
|
||||||
To setup `Vault` follow steps in [Build Your Own Certificate Authority (CA)](https://learn.hashicorp.com/tutorials/vault/pki-engine).
|
To setup `Vault` follow steps in [Build Your Own Certificate Authority (CA)](https://learn.hashicorp.com/tutorials/vault/pki-engine).
|
||||||
|
|
||||||
For lab purposes you can use docker-compose and script for setting up PKI in [https://github.com/absmach/magistrala/blob/master/docker/addons/vault/README.md](https://github.com/absmach/magistrala/blob/master/docker/addons/vault/README.md)
|
For lab purposes you can use docker-compose and script for setting up PKI in [https://github.com/absmach/magistrala/blob/main/docker/addons/vault/README.md](https://github.com/absmach/magistrala/blob/main/docker/addons/vault/README.md)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
MG_CERTS_VAULT_HOST=<https://vault-domain:8200>
|
MG_CERTS_VAULT_HOST=<https://vault-domain:8200>
|
||||||
@@ -68,7 +68,7 @@ The service is configured using the environment variables presented in the follo
|
|||||||
|
|
||||||
## Deployment
|
## Deployment
|
||||||
|
|
||||||
The service is distributed as Docker container. Check the [`certs`](https://github.com/absmach/magistrala/blob/main/docker/addons/bootstrap/docker-compose.yml) service section in docker-compose to see how the service is deployed.
|
The service is distributed as Docker container. Check the [`certs`](https://github.com/absmach/magistrala/blob/main/docker/addons/bootstrap/docker-compose.yml) service section in docker-compose file to see how the service is deployed.
|
||||||
|
|
||||||
Running this service outside of container requires working instance of the auth service, things service, postgres database, vault and Jaeger server.
|
Running this service outside of container requires working instance of the auth service, things service, postgres database, vault and Jaeger server.
|
||||||
To start the service outside of the container, execute the following shell script:
|
To start the service outside of the container, execute the following shell script:
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ func TestMain(m *testing.M) {
|
|||||||
|
|
||||||
container, err := pool.RunWithOptions(&dockertest.RunOptions{
|
container, err := pool.RunWithOptions(&dockertest.RunOptions{
|
||||||
Repository: "postgres",
|
Repository: "postgres",
|
||||||
Tag: "16.1-alpine",
|
Tag: "16.2-alpine",
|
||||||
Env: []string{
|
Env: []string{
|
||||||
"POSTGRES_USER=test",
|
"POSTGRES_USER=test",
|
||||||
"POSTGRES_PASSWORD=test",
|
"POSTGRES_PASSWORD=test",
|
||||||
|
|||||||
+1
-1
@@ -79,7 +79,7 @@ var cmdBootstrap = []cobra.Command{
|
|||||||
config <JSON_config> - Updates editable fields of the provided Config.
|
config <JSON_config> - Updates editable fields of the provided Config.
|
||||||
connection <id> <channel_ids> - Updates connections performs update of the channel list corresponding Thing is connected to.
|
connection <id> <channel_ids> - Updates connections performs update of the channel list corresponding Thing is connected to.
|
||||||
channel_ids - '["channel_id1", ...]'
|
channel_ids - '["channel_id1", ...]'
|
||||||
certs <id> <client_cert> <client_key> <ca> - Update boostrap config certificates.`,
|
certs <id> <client_cert> <client_key> <ca> - Update bootstrap config certificates.`,
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
if len(args) < 3 {
|
if len(args) < 3 {
|
||||||
logUsage(cmd.Use)
|
logUsage(cmd.Use)
|
||||||
|
|||||||
+1
-1
@@ -30,7 +30,7 @@ The service is configured using the environment variables presented in the follo
|
|||||||
|
|
||||||
## Deployment
|
## Deployment
|
||||||
|
|
||||||
The service itself is distributed as Docker container. Check the [`coap-adapter`](https://github.com/absmach/magistrala/blob/main/docker/docker-compose.yml) service section in docker-compose to see how service is deployed.
|
The service itself is distributed as Docker container. Check the [`coap-adapter`](https://github.com/absmach/magistrala/blob/main/docker/docker-compose.yml) service section in docker-compose file to see how service is deployed.
|
||||||
|
|
||||||
Running this service outside of container requires working instance of the message broker service, things service and Jaeger server.
|
Running this service outside of container requires working instance of the message broker service, things service and Jaeger server.
|
||||||
To start the service outside of the container, execute the following shell script:
|
To start the service outside of the container, execute the following shell script:
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ func TestMain(m *testing.M) {
|
|||||||
|
|
||||||
container, err := pool.RunWithOptions(&dockertest.RunOptions{
|
container, err := pool.RunWithOptions(&dockertest.RunOptions{
|
||||||
Repository: "postgres",
|
Repository: "postgres",
|
||||||
Tag: "16.1-alpine",
|
Tag: "16.2-alpine",
|
||||||
Env: []string{
|
Env: []string{
|
||||||
"POSTGRES_USER=test",
|
"POSTGRES_USER=test",
|
||||||
"POSTGRES_PASSWORD=test",
|
"POSTGRES_PASSWORD=test",
|
||||||
|
|||||||
@@ -24,11 +24,11 @@ default values.
|
|||||||
| MG_MESSAGE_BROKER_URL | Message broker instance URL | nats://localhost:4222 |
|
| MG_MESSAGE_BROKER_URL | Message broker instance URL | nats://localhost:4222 |
|
||||||
| MG_JAEGER_URL | Jaeger server URL | http://jaeger:14268/api/traces |
|
| MG_JAEGER_URL | Jaeger server URL | http://jaeger:14268/api/traces |
|
||||||
| MG_SEND_TELEMETRY | Send telemetry to magistrala call home server | true |
|
| MG_SEND_TELEMETRY | Send telemetry to magistrala call home server | true |
|
||||||
| MG_CASSANDRA_WRITER_INSANCE_ID | Cassandra writer instance ID | |
|
| MG_CASSANDRA_WRITER_INSTANCE_ID | Cassandra writer instance ID | |
|
||||||
|
|
||||||
## Deployment
|
## Deployment
|
||||||
|
|
||||||
The service itself is distributed as Docker container. Check the [`cassandra-writer`](https://github.com/absmach/magistrala/blob/master/docker/addons/cassandra-writer/docker-compose.yml#L30-L49) service section in docker-compose to see how service is deployed.
|
The service itself is distributed as Docker container. Check the [`cassandra-writer`](https://github.com/absmach/magistrala/blob/main/docker/addons/cassandra-writer/docker-compose.yml#L30-L49) service section in docker-compose file to see how service is deployed.
|
||||||
|
|
||||||
To start the service, execute the following shell script:
|
To start the service, execute the following shell script:
|
||||||
|
|
||||||
@@ -59,7 +59,7 @@ MG_CASSANDRA_PORT=[Cassandra DB port] \
|
|||||||
MG_MESSAGE_BROKER_URL=[Message Broker instance URL] \
|
MG_MESSAGE_BROKER_URL=[Message Broker instance URL] \
|
||||||
MG_JAEGER_URL=[Jaeger server URL] \
|
MG_JAEGER_URL=[Jaeger server URL] \
|
||||||
MG_SEND_TELEMETRY=[Send telemetry to magistrala call home server] \
|
MG_SEND_TELEMETRY=[Send telemetry to magistrala call home server] \
|
||||||
MG_CASSANDRA_WRITER_INSANCE_ID=[Cassandra writer instance ID] \
|
MG_CASSANDRA_WRITER_INSTANCE_ID=[Cassandra writer instance ID] \
|
||||||
$GOBIN/magistrala-cassandra-writer
|
$GOBIN/magistrala-cassandra-writer
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ default values.
|
|||||||
|
|
||||||
## Deployment
|
## Deployment
|
||||||
|
|
||||||
The service itself is distributed as Docker container. Check the [`influxdb-writer`](https://github.com/absmach/magistrala/blob/master/docker/addons/influxdb-writer/docker-compose.yml#L35-L58) service section in docker-compose to see how service is deployed.
|
The service itself is distributed as Docker container. Check the [`influxdb-writer`](https://github.com/absmach/magistrala/blob/main/docker/addons/influxdb-writer/docker-compose.yml#L35-L58) service section in docker-compose file to see how service is deployed.
|
||||||
|
|
||||||
To start the service, execute the following shell script:
|
To start the service, execute the following shell script:
|
||||||
|
|
||||||
@@ -87,13 +87,13 @@ and writer service, it contains InfluxData Web Admin Interface which can be used
|
|||||||
exploration and data visualization and analytics. In order to run Magistrala InfluxDB writer, execute the following command:
|
exploration and data visualization and analytics. In order to run Magistrala InfluxDB writer, execute the following command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker-compose -f docker/addons/influxdb-writer/docker-compose.yml up -d
|
docker compose -f docker/addons/influxdb-writer/docker-compose.yml up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
And, to use the default .env file, execute the following command:
|
And, to use the default .env file, execute the following command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker-compose -f docker/addons/influxdb-writer/docker-compose.yml up --env-file docker/.env -d
|
docker compose -f docker/addons/influxdb-writer/docker-compose.yml up --env-file docker/.env -d
|
||||||
```
|
```
|
||||||
|
|
||||||
_Please note that you need to start core services before the additional ones._
|
_Please note that you need to start core services before the additional ones._
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ default values.
|
|||||||
|
|
||||||
## Deployment
|
## Deployment
|
||||||
|
|
||||||
The service itself is distributed as Docker container. Check the [`mongodb-writer`](https://github.com/absmach/magistrala/blob/master/docker/addons/mongodb-writer/docker-compose.yml#L36-L55) service section in docker-compose to see how service is deployed.
|
The service itself is distributed as Docker container. Check the [`mongodb-writer`](https://github.com/absmach/magistrala/blob/main/docker/addons/mongodb-writer/docker-compose.yml#L36-L55) service section in docker-compose file to see how service is deployed.
|
||||||
|
|
||||||
To start the service, execute the following shell script:
|
To start the service, execute the following shell script:
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ default values.
|
|||||||
|
|
||||||
## Deployment
|
## Deployment
|
||||||
|
|
||||||
The service itself is distributed as Docker container. Check the [`postgres-writer`](https://github.com/absmach/magistrala/blob/master/docker/addons/postgres-writer/docker-compose.yml#L34-L59) service section in docker-compose to see how service is deployed.
|
The service itself is distributed as Docker container. Check the [`postgres-writer`](https://github.com/absmach/magistrala/blob/main/docker/addons/postgres-writer/docker-compose.yml#L34-L59) service section in docker-compose file to see how service is deployed.
|
||||||
|
|
||||||
To start the service, execute the following shell script:
|
To start the service, execute the following shell script:
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ func TestMain(m *testing.M) {
|
|||||||
|
|
||||||
container, err := pool.RunWithOptions(&dockertest.RunOptions{
|
container, err := pool.RunWithOptions(&dockertest.RunOptions{
|
||||||
Repository: "postgres",
|
Repository: "postgres",
|
||||||
Tag: "16.1-alpine",
|
Tag: "16.2-alpine",
|
||||||
Env: []string{
|
Env: []string{
|
||||||
"POSTGRES_USER=test",
|
"POSTGRES_USER=test",
|
||||||
"POSTGRES_PASSWORD=test",
|
"POSTGRES_PASSWORD=test",
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ default values.
|
|||||||
|
|
||||||
## Deployment
|
## Deployment
|
||||||
|
|
||||||
The service itself is distributed as Docker container. Check the [`timescale-writer`](https://github.com/absmach/magistrala/blob/master/docker/addons/timescale-writer/docker-compose.yml#L34-L59) service section in docker-compose to see how service is deployed.
|
The service itself is distributed as Docker container. Check the [`timescale-writer`](https://github.com/absmach/magistrala/blob/main/docker/addons/timescale-writer/docker-compose.yml#L34-L59) service section in docker-compose file to see how service is deployed.
|
||||||
|
|
||||||
To start the service, execute the following shell script:
|
To start the service, execute the following shell script:
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -13,11 +13,11 @@ Follow the [official documentation](https://docs.docker.com/compose/install/).
|
|||||||
Run the following commands from the project root directory.
|
Run the following commands from the project root directory.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker-compose -f docker/docker-compose.yml up
|
docker compose -f docker/docker-compose.yml up
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker-compose -f docker/addons/<path>/docker-compose.yml up
|
docker compose -f docker/addons/<path>/docker-compose.yml up
|
||||||
```
|
```
|
||||||
|
|
||||||
To pull docker images from a specific release you need to change the value of `MG_RELEASE_TAG` in `.env` before running these commands.
|
To pull docker images from a specific release you need to change the value of `MG_RELEASE_TAG` in `.env` before running these commands.
|
||||||
|
|||||||
@@ -3,11 +3,9 @@
|
|||||||
|
|
||||||
# This docker-compose file contains optional bootstrap services. Since it's optional, this file is
|
# This docker-compose file contains optional bootstrap services. Since it's optional, this file is
|
||||||
# dependent of docker-compose file from <project_root>/docker. In order to run this services, execute command:
|
# dependent of docker-compose file from <project_root>/docker. In order to run this services, execute command:
|
||||||
# docker-compose -f docker/docker-compose.yml -f docker/addons/bootstrap/docker-compose.yml up
|
# docker compose -f docker/docker-compose.yml -f docker/addons/bootstrap/docker-compose.yml up
|
||||||
# from project root.
|
# from project root.
|
||||||
|
|
||||||
version: "3.7"
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
magistrala-base-net:
|
magistrala-base-net:
|
||||||
|
|
||||||
@@ -17,7 +15,7 @@ volumes:
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
bootstrap-db:
|
bootstrap-db:
|
||||||
image: postgres:16.1-alpine
|
image: postgres:16.2-alpine
|
||||||
container_name: magistrala-bootstrap-db
|
container_name: magistrala-bootstrap-db
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
@@ -3,11 +3,9 @@
|
|||||||
|
|
||||||
# This docker-compose file contains optional cassandra-reader. Since it's optional, this file is
|
# This docker-compose file contains optional cassandra-reader. Since it's optional, this file is
|
||||||
# dependent of docker-compose file from <project_root>/docker. In order to run this service, execute command:
|
# dependent of docker-compose file from <project_root>/docker. In order to run this service, execute command:
|
||||||
# docker-compose -f docker/docker-compose.yml -f docker/addons/cassandra-reader/docker-compose.yml up
|
# docker compose -f docker/docker-compose.yml -f docker/addons/cassandra-reader/docker-compose.yml up
|
||||||
# from project root.
|
# from project root.
|
||||||
|
|
||||||
version: "3.7"
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
magistrala-base-net:
|
magistrala-base-net:
|
||||||
|
|
||||||
|
|||||||
@@ -3,11 +3,9 @@
|
|||||||
|
|
||||||
# This docker-compose file contains optional Cassandra and cassandra-writer. Since these are optional, this file is
|
# This docker-compose file contains optional Cassandra and cassandra-writer. Since these are optional, this file is
|
||||||
# dependent of docker-compose file from <project_root>/docker. In order to run these services, execute command:
|
# dependent of docker-compose file from <project_root>/docker. In order to run these services, execute command:
|
||||||
# docker-compose -f docker/docker-compose.yml -f docker/addons/cassandra-writer/docker-compose.yml up
|
# docker compose -f docker/docker-compose.yml -f docker/addons/cassandra-writer/docker-compose.yml up
|
||||||
# from project root.
|
# from project root.
|
||||||
|
|
||||||
version: "3.7"
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
magistrala-base-net:
|
magistrala-base-net:
|
||||||
|
|
||||||
@@ -59,7 +57,7 @@ services:
|
|||||||
MG_JAEGER_URL: ${MG_JAEGER_URL}
|
MG_JAEGER_URL: ${MG_JAEGER_URL}
|
||||||
MG_JAEGER_TRACE_RATIO: ${MG_JAEGER_TRACE_RATIO}
|
MG_JAEGER_TRACE_RATIO: ${MG_JAEGER_TRACE_RATIO}
|
||||||
MG_SEND_TELEMETRY: ${MG_SEND_TELEMETRY}
|
MG_SEND_TELEMETRY: ${MG_SEND_TELEMETRY}
|
||||||
MG_CASSANDRA_WRITER_INSANCE_ID: ${MG_CASSANDRA_WRITER_INSANCE_ID}
|
MG_CASSANDRA_WRITER_INSTANCE_ID: ${MG_CASSANDRA_WRITER_INSTANCE_ID}
|
||||||
ports:
|
ports:
|
||||||
- ${MG_CASSANDRA_WRITER_HTTP_PORT}:${MG_CASSANDRA_WRITER_HTTP_PORT}
|
- ${MG_CASSANDRA_WRITER_HTTP_PORT}:${MG_CASSANDRA_WRITER_HTTP_PORT}
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
@@ -3,11 +3,9 @@
|
|||||||
|
|
||||||
# This docker-compose file contains optional certs services. Since it's optional, this file is
|
# This docker-compose file contains optional certs services. Since it's optional, this file is
|
||||||
# dependent of docker-compose file from <project_root>/docker. In order to run this services, execute command:
|
# dependent of docker-compose file from <project_root>/docker. In order to run this services, execute command:
|
||||||
# docker-compose -f docker/docker-compose.yml -f docker/addons/certs/docker-compose.yml up
|
# docker compose -f docker/docker-compose.yml -f docker/addons/certs/docker-compose.yml up
|
||||||
# from project root.
|
# from project root.
|
||||||
|
|
||||||
version: "3.7"
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
magistrala-base-net:
|
magistrala-base-net:
|
||||||
|
|
||||||
@@ -17,7 +15,7 @@ volumes:
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
certs-db:
|
certs-db:
|
||||||
image: postgres:16.1-alpine
|
image: postgres:16.2-alpine
|
||||||
container_name: magistrala-certs-db
|
container_name: magistrala-certs-db
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
@@ -8,8 +8,6 @@
|
|||||||
# as well as the network from the core composition, should be already running.
|
# as well as the network from the core composition, should be already running.
|
||||||
###
|
###
|
||||||
|
|
||||||
version: "3.7"
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
magistrala-base-net:
|
magistrala-base-net:
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,6 @@
|
|||||||
# docker-compose.yml file from <project_root>/docker/. In order to run these services,
|
# docker-compose.yml file from <project_root>/docker/. In order to run these services,
|
||||||
# core services, as well as the network from the core composition, should be already running.
|
# core services, as well as the network from the core composition, should be already running.
|
||||||
|
|
||||||
version: "3.7"
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
magistrala-base-net:
|
magistrala-base-net:
|
||||||
|
|
||||||
@@ -16,7 +14,7 @@ volumes:
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
influxdb:
|
influxdb:
|
||||||
image: influxdb:2.7-alpine
|
image: influxdb:2.7.5-alpine
|
||||||
container_name: magistrala-influxdb
|
container_name: magistrala-influxdb
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
@@ -6,8 +6,6 @@
|
|||||||
# docker-compose.yml file from <project_root>/docker/. In order to run these services,
|
# docker-compose.yml file from <project_root>/docker/. In order to run these services,
|
||||||
# core services, as well as the network from the core composition, should be already running.
|
# core services, as well as the network from the core composition, should be already running.
|
||||||
|
|
||||||
version: "3.7"
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
magistrala-base-net:
|
magistrala-base-net:
|
||||||
|
|
||||||
|
|||||||
@@ -4,11 +4,9 @@
|
|||||||
# This docker-compose file contains optional MongoDB-reader service
|
# This docker-compose file contains optional MongoDB-reader service
|
||||||
# for Magistrala platform. Since these are optional, this file is dependent of docker-compose file
|
# for Magistrala platform. Since these are optional, this file is dependent of docker-compose file
|
||||||
# from <project_root>/docker. In order to run this service, execute command:
|
# from <project_root>/docker. In order to run this service, execute command:
|
||||||
# docker-compose -f docker/docker-compose.yml -f docker/addons/mongodb-reader/docker-compose.yml up
|
# docker compose -f docker/docker-compose.yml -f docker/addons/mongodb-reader/docker-compose.yml up
|
||||||
# from project root. MongoDB service is defined in docker/addons/mongodb-writer/docker-compose.yml.
|
# from project root. MongoDB service is defined in docker/addons/mongodb-writer/docker-compose.yml.
|
||||||
|
|
||||||
version: "3.7"
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
magistrala-base-net:
|
magistrala-base-net:
|
||||||
|
|
||||||
|
|||||||
@@ -4,12 +4,10 @@
|
|||||||
# This docker-compose file contains optional MongoDB and MongoDB-writer services
|
# This docker-compose file contains optional MongoDB and MongoDB-writer services
|
||||||
# for Magistrala platform. Since these are optional, this file is dependent of docker-compose file
|
# for Magistrala platform. Since these are optional, this file is dependent of docker-compose file
|
||||||
# from <project_root>/docker. In order to run these services, execute command:
|
# from <project_root>/docker. In order to run these services, execute command:
|
||||||
# docker-compose -f docker/docker-compose.yml -f docker/addons/mongodb-writer/docker-compose.yml up
|
# docker compose -f docker/docker-compose.yml -f docker/addons/mongodb-writer/docker-compose.yml up
|
||||||
# from project root. MongoDB default port (27017) is exposed, so you can use various tools for database
|
# from project root. MongoDB default port (27017) is exposed, so you can use various tools for database
|
||||||
# inspection and data visualization.
|
# inspection and data visualization.
|
||||||
|
|
||||||
version: "3.7"
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
magistrala-base-net:
|
magistrala-base-net:
|
||||||
|
|
||||||
@@ -19,7 +17,7 @@ volumes:
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
mongodb:
|
mongodb:
|
||||||
image: mongo:7.0.5
|
image: mongo:7.0.8
|
||||||
container_name: magistrala-mongodb
|
container_name: magistrala-mongodb
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
@@ -6,8 +6,6 @@
|
|||||||
# docker-compose.yml file from <project_root>/docker/. In order to run these services,
|
# docker-compose.yml file from <project_root>/docker/. In order to run these services,
|
||||||
# core services, as well as the network from the core composition, should be already running.
|
# core services, as well as the network from the core composition, should be already running.
|
||||||
|
|
||||||
version: "3.7"
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
magistrala-base-net:
|
magistrala-base-net:
|
||||||
|
|
||||||
|
|||||||
@@ -4,11 +4,9 @@
|
|||||||
# This docker-compose file contains optional Postgres-reader service for Magistrala platform.
|
# This docker-compose file contains optional Postgres-reader service for Magistrala platform.
|
||||||
# Since this service is optional, this file is dependent of docker-compose.yml file
|
# Since this service is optional, this file is dependent of docker-compose.yml file
|
||||||
# from <project_root>/docker. In order to run this service, execute command:
|
# from <project_root>/docker. In order to run this service, execute command:
|
||||||
# docker-compose -f docker/docker-compose.yml -f docker/addons/postgres-reader/docker-compose.yml up
|
# docker compose -f docker/docker-compose.yml -f docker/addons/postgres-reader/docker-compose.yml up
|
||||||
# from project root.
|
# from project root.
|
||||||
|
|
||||||
version: "3.7"
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
magistrala-base-net:
|
magistrala-base-net:
|
||||||
|
|
||||||
|
|||||||
@@ -4,12 +4,10 @@
|
|||||||
# This docker-compose file contains optional Postgres and Postgres-writer services
|
# This docker-compose file contains optional Postgres and Postgres-writer services
|
||||||
# for Magistrala platform. Since these are optional, this file is dependent of docker-compose file
|
# for Magistrala platform. Since these are optional, this file is dependent of docker-compose file
|
||||||
# from <project_root>/docker. In order to run these services, execute command:
|
# from <project_root>/docker. In order to run these services, execute command:
|
||||||
# docker-compose -f docker/docker-compose.yml -f docker/addons/postgres-writer/docker-compose.yml up
|
# docker compose -f docker/docker-compose.yml -f docker/addons/postgres-writer/docker-compose.yml up
|
||||||
# from project root. PostgreSQL default port (5432) is exposed, so you can use various tools for database
|
# from project root. PostgreSQL default port (5432) is exposed, so you can use various tools for database
|
||||||
# inspection and data visualization.
|
# inspection and data visualization.
|
||||||
|
|
||||||
version: "3.7"
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
magistrala-base-net:
|
magistrala-base-net:
|
||||||
|
|
||||||
@@ -18,7 +16,7 @@ volumes:
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:16.1-alpine
|
image: postgres:16.2-alpine
|
||||||
container_name: magistrala-postgres
|
container_name: magistrala-postgres
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
@@ -4,11 +4,9 @@
|
|||||||
# This docker-compose file contains optional Prometheus and Grafana service for Magistrala platform.
|
# This docker-compose file contains optional Prometheus and Grafana service for Magistrala platform.
|
||||||
# Since this service is optional, this file is dependent of docker-compose.yml file
|
# Since this service is optional, this file is dependent of docker-compose.yml file
|
||||||
# from <project_root>/docker. In order to run this service, execute command:
|
# from <project_root>/docker. In order to run this service, execute command:
|
||||||
# docker-compose -f docker/addons/prometheus/docker-compose.yml up
|
# docker compose -f docker/addons/prometheus/docker-compose.yml up
|
||||||
# from project root.
|
# from project root.
|
||||||
|
|
||||||
version: "3.7"
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
magistrala-base-net:
|
magistrala-base-net:
|
||||||
|
|
||||||
|
|||||||
@@ -3,11 +3,9 @@
|
|||||||
|
|
||||||
# This docker-compose file contains optional provision services. Since it's optional, this file is
|
# This docker-compose file contains optional provision services. Since it's optional, this file is
|
||||||
# dependent of docker-compose file from <project_root>/docker. In order to run this services, execute command:
|
# dependent of docker-compose file from <project_root>/docker. In order to run this services, execute command:
|
||||||
# docker-compose -f docker/docker-compose.yml -f docker/addons/provision/docker-compose.yml up
|
# docker compose -f docker/docker-compose.yml -f docker/addons/provision/docker-compose.yml up
|
||||||
# from project root.
|
# from project root.
|
||||||
|
|
||||||
version: "3.7"
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
magistrala-base-net:
|
magistrala-base-net:
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,6 @@
|
|||||||
# docker-compose.yml file from <project_root>/docker/. In order to run these services,
|
# docker-compose.yml file from <project_root>/docker/. In order to run these services,
|
||||||
# core services, as well as the network from the core composition, should be already running.
|
# core services, as well as the network from the core composition, should be already running.
|
||||||
|
|
||||||
version: "3.7"
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
magistrala-base-net:
|
magistrala-base-net:
|
||||||
|
|
||||||
@@ -16,7 +14,7 @@ volumes:
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
smpp-notifier-db:
|
smpp-notifier-db:
|
||||||
image: postgres:16.1-alpine
|
image: postgres:16.2-alpine
|
||||||
container_name: magistrala-smpp-notifier-db
|
container_name: magistrala-smpp-notifier-db
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
@@ -6,8 +6,6 @@
|
|||||||
# docker-compose.yml file from <project_root>/docker/. In order to run these services,
|
# docker-compose.yml file from <project_root>/docker/. In order to run these services,
|
||||||
# core services, as well as the network from the core composition, should be already running.
|
# core services, as well as the network from the core composition, should be already running.
|
||||||
|
|
||||||
version: "3.7"
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
magistrala-base-net:
|
magistrala-base-net:
|
||||||
|
|
||||||
@@ -16,7 +14,7 @@ volumes:
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
smtp-notifier-db:
|
smtp-notifier-db:
|
||||||
image: postgres:16.1-alpine
|
image: postgres:16.2-alpine
|
||||||
container_name: magistrala-smtp-notifier-db
|
container_name: magistrala-smtp-notifier-db
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
@@ -4,11 +4,9 @@
|
|||||||
# This docker-compose file contains optional Timescale-reader service for Magistrala platform.
|
# This docker-compose file contains optional Timescale-reader service for Magistrala platform.
|
||||||
# Since this service is optional, this file is dependent of docker-compose.yml file
|
# Since this service is optional, this file is dependent of docker-compose.yml file
|
||||||
# from <project_root>/docker. In order to run this service, execute command:
|
# from <project_root>/docker. In order to run this service, execute command:
|
||||||
# docker-compose -f docker/docker-compose.yml -f docker/addons/timescale-reader/docker-compose.yml up
|
# docker compose -f docker/docker-compose.yml -f docker/addons/timescale-reader/docker-compose.yml up
|
||||||
# from project root.
|
# from project root.
|
||||||
|
|
||||||
version: "3.7"
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
magistrala-base-net:
|
magistrala-base-net:
|
||||||
|
|
||||||
|
|||||||
@@ -4,12 +4,10 @@
|
|||||||
# This docker-compose file contains optional Timescale and Timescale-writer services
|
# This docker-compose file contains optional Timescale and Timescale-writer services
|
||||||
# for Magistrala platform. Since these are optional, this file is dependent of docker-compose file
|
# for Magistrala platform. Since these are optional, this file is dependent of docker-compose file
|
||||||
# from <project_root>/docker. In order to run these services, execute command:
|
# from <project_root>/docker. In order to run these services, execute command:
|
||||||
# docker-compose -f docker/docker-compose.yml -f docker/addons/timescale-writer/docker-compose.yml up
|
# docker compose -f docker/docker-compose.yml -f docker/addons/timescale-writer/docker-compose.yml up
|
||||||
# from project root. PostgreSQL default port (5432) is exposed, so you can use various tools for database
|
# from project root. PostgreSQL default port (5432) is exposed, so you can use various tools for database
|
||||||
# inspection and data visualization.
|
# inspection and data visualization.
|
||||||
|
|
||||||
version: "3.7"
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
magistrala-base-net:
|
magistrala-base-net:
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,6 @@
|
|||||||
# docker-compose.yml file from <project_root>/docker/. In order to run these services,
|
# docker-compose.yml file from <project_root>/docker/. In order to run these services,
|
||||||
# core services, as well as the network from the core composition, should be already running.
|
# core services, as well as the network from the core composition, should be already running.
|
||||||
|
|
||||||
version: "3.7"
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
magistrala-base-net:
|
magistrala-base-net:
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
# This docker-compose file contains optional Vault service for Magistrala platform.
|
# This docker-compose file contains optional Vault service for Magistrala platform.
|
||||||
# Since this is optional, this file is dependent of docker-compose file
|
# Since this is optional, this file is dependent of docker-compose file
|
||||||
# from <project_root>/docker. In order to run these services, execute command:
|
# from <project_root>/docker. In order to run these services, execute command:
|
||||||
# docker-compose -f docker/docker-compose.yml -f docker/addons/vault/docker-compose.yml up
|
# docker compose -f docker/docker-compose.yml -f docker/addons/vault/docker-compose.yml up
|
||||||
# from project root. Vault default port (8200) is exposed, so you can use Vault CLI tool for
|
# from project root. Vault default port (8200) is exposed, so you can use Vault CLI tool for
|
||||||
# vault inspection and administration, as well as access the UI.
|
# vault inspection and administration, as well as access the UI.
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
# Copyright (c) Abstract Machines
|
# Copyright (c) Abstract Machines
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
version: "3.7"
|
|
||||||
name: "magistrala"
|
name: "magistrala"
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
@@ -21,7 +20,7 @@ volumes:
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
spicedb:
|
spicedb:
|
||||||
image: "authzed/spicedb:v1.29.0"
|
image: "authzed/spicedb:v1.30.0"
|
||||||
container_name: magistrala-spicedb
|
container_name: magistrala-spicedb
|
||||||
command: "serve"
|
command: "serve"
|
||||||
restart: "always"
|
restart: "always"
|
||||||
@@ -39,7 +38,7 @@ services:
|
|||||||
- spicedb-migrate
|
- spicedb-migrate
|
||||||
|
|
||||||
spicedb-migrate:
|
spicedb-migrate:
|
||||||
image: "authzed/spicedb:v1.29.0"
|
image: "authzed/spicedb:v1.30.0"
|
||||||
container_name: magistrala-spicedb-migrate
|
container_name: magistrala-spicedb-migrate
|
||||||
command: "migrate head"
|
command: "migrate head"
|
||||||
restart: "on-failure"
|
restart: "on-failure"
|
||||||
@@ -52,7 +51,7 @@ services:
|
|||||||
- spicedb-db
|
- spicedb-db
|
||||||
|
|
||||||
spicedb-db:
|
spicedb-db:
|
||||||
image: "postgres:16.1-alpine"
|
image: "postgres:16.2-alpine"
|
||||||
container_name: magistrala-spicedb-db
|
container_name: magistrala-spicedb-db
|
||||||
networks:
|
networks:
|
||||||
- magistrala-base-net
|
- magistrala-base-net
|
||||||
@@ -66,7 +65,7 @@ services:
|
|||||||
- magistrala-spicedb-db-volume:/var/lib/postgresql/data
|
- magistrala-spicedb-db-volume:/var/lib/postgresql/data
|
||||||
|
|
||||||
auth-db:
|
auth-db:
|
||||||
image: postgres:16.1-alpine
|
image: postgres:16.2-alpine
|
||||||
container_name: magistrala-auth-db
|
container_name: magistrala-auth-db
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
ports:
|
ports:
|
||||||
@@ -155,7 +154,7 @@ services:
|
|||||||
create_host_path: true
|
create_host_path: true
|
||||||
|
|
||||||
invitations-db:
|
invitations-db:
|
||||||
image: postgres:16.1-alpine
|
image: postgres:16.2-alpine
|
||||||
container_name: magistrala-invitations-db
|
container_name: magistrala-invitations-db
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
command: postgres -c "max_connections=${MG_POSTGRES_MAX_CONNECTIONS}"
|
command: postgres -c "max_connections=${MG_POSTGRES_MAX_CONNECTIONS}"
|
||||||
@@ -226,7 +225,7 @@ services:
|
|||||||
create_host_path: true
|
create_host_path: true
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
image: nginx:1.25.0-alpine
|
image: nginx:1.25.4-alpine
|
||||||
container_name: magistrala-nginx
|
container_name: magistrala-nginx
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
volumes:
|
volumes:
|
||||||
@@ -264,7 +263,7 @@ services:
|
|||||||
- coap-adapter
|
- coap-adapter
|
||||||
|
|
||||||
things-db:
|
things-db:
|
||||||
image: postgres:16.1-alpine
|
image: postgres:16.2-alpine
|
||||||
container_name: magistrala-things-db
|
container_name: magistrala-things-db
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
command: postgres -c "max_connections=${MG_POSTGRES_MAX_CONNECTIONS}"
|
command: postgres -c "max_connections=${MG_POSTGRES_MAX_CONNECTIONS}"
|
||||||
@@ -378,7 +377,7 @@ services:
|
|||||||
create_host_path: true
|
create_host_path: true
|
||||||
|
|
||||||
users-db:
|
users-db:
|
||||||
image: postgres:16.1-alpine
|
image: postgres:16.2-alpine
|
||||||
container_name: magistrala-users-db
|
container_name: magistrala-users-db
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
command: postgres -c "max_connections=${MG_POSTGRES_MAX_CONNECTIONS}"
|
command: postgres -c "max_connections=${MG_POSTGRES_MAX_CONNECTIONS}"
|
||||||
@@ -744,7 +743,7 @@ services:
|
|||||||
- magistrala-base-net
|
- magistrala-base-net
|
||||||
|
|
||||||
ui-db:
|
ui-db:
|
||||||
image: postgres:16.1-alpine
|
image: postgres:16.2-alpine
|
||||||
container_name: magistrala-ui-db
|
container_name: magistrala-ui-db
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
command: postgres -c "max_connections=${MG_POSTGRES_MAX_CONNECTIONS}"
|
command: postgres -c "max_connections=${MG_POSTGRES_MAX_CONNECTIONS}"
|
||||||
|
|||||||
@@ -36,8 +36,9 @@ http {
|
|||||||
server {
|
server {
|
||||||
listen 80 default_server;
|
listen 80 default_server;
|
||||||
listen [::]:80 default_server;
|
listen [::]:80 default_server;
|
||||||
listen 443 ssl http2 default_server;
|
listen 443 ssl default_server;
|
||||||
listen [::]:443 ssl http2 default_server;
|
listen [::]:443 ssl default_server;
|
||||||
|
http2 on;
|
||||||
|
|
||||||
set $dynamic_server_name "$MG_NGINX_SERVER_NAME";
|
set $dynamic_server_name "$MG_NGINX_SERVER_NAME";
|
||||||
|
|
||||||
|
|||||||
@@ -43,8 +43,9 @@ http {
|
|||||||
server {
|
server {
|
||||||
listen 80 default_server;
|
listen 80 default_server;
|
||||||
listen [::]:80 default_server;
|
listen [::]:80 default_server;
|
||||||
listen 443 ssl http2 default_server;
|
listen 443 ssl default_server;
|
||||||
listen [::]:443 ssl http2 default_server;
|
listen [::]:443 ssl default_server;
|
||||||
|
http2 on;
|
||||||
|
|
||||||
set $dynamic_server_name "$MG_NGINX_SERVER_NAME";
|
set $dynamic_server_name "$MG_NGINX_SERVER_NAME";
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -26,7 +26,7 @@ The service is configured using the environment variables presented in the follo
|
|||||||
|
|
||||||
## Deployment
|
## Deployment
|
||||||
|
|
||||||
The service itself is distributed as Docker container. Check the [`http-adapter`](https://github.com/absmach/magistrala/blob/main/docker/docker-compose.yml) service section in docker-compose to see how service is deployed.
|
The service itself is distributed as Docker container. Check the [`http-adapter`](https://github.com/absmach/magistrala/blob/main/docker/docker-compose.yml) service section in docker-compose file to see how service is deployed.
|
||||||
|
|
||||||
Running this service outside of container requires working instance of the message broker service, things service and Jaeger server.
|
Running this service outside of container requires working instance of the message broker service, things service and Jaeger server.
|
||||||
To start the service outside of the container, execute the following shell script:
|
To start the service outside of the container, execute the following shell script:
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ func TestMain(m *testing.M) {
|
|||||||
|
|
||||||
container, err := pool.RunWithOptions(&dockertest.RunOptions{
|
container, err := pool.RunWithOptions(&dockertest.RunOptions{
|
||||||
Repository: "postgres",
|
Repository: "postgres",
|
||||||
Tag: "16.1-alpine",
|
Tag: "16.2-alpine",
|
||||||
Env: []string{
|
Env: []string{
|
||||||
"POSTGRES_USER=test",
|
"POSTGRES_USER=test",
|
||||||
"POSTGRES_PASSWORD=test",
|
"POSTGRES_PASSWORD=test",
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ The service is configured using the environment variables presented in the follo
|
|||||||
|
|
||||||
## Deployment
|
## Deployment
|
||||||
|
|
||||||
The service itself is distributed as Docker container. Check the [`invitation`](https://github.com/absmach/amdm/blob/master/docker/docker-compose.yml) service section in docker-compose to see how service is deployed.
|
The service itself is distributed as Docker container. Check the [`invitation`](https://github.com/absmach/amdm/blob/main/docker/docker-compose.yml) service section in docker-compose file to see how service is deployed.
|
||||||
|
|
||||||
To start the service outside of the container, execute the following shell script:
|
To start the service outside of the container, execute the following shell script:
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ func TestMain(m *testing.M) {
|
|||||||
|
|
||||||
container, err := pool.RunWithOptions(&dockertest.RunOptions{
|
container, err := pool.RunWithOptions(&dockertest.RunOptions{
|
||||||
Repository: "postgres",
|
Repository: "postgres",
|
||||||
Tag: "16.1-alpine",
|
Tag: "16.2-alpine",
|
||||||
Env: []string{
|
Env: []string{
|
||||||
"POSTGRES_USER=test",
|
"POSTGRES_USER=test",
|
||||||
"POSTGRES_PASSWORD=test",
|
"POSTGRES_PASSWORD=test",
|
||||||
|
|||||||
+2
-2
@@ -33,7 +33,7 @@ The service is configured using the environment variables presented in the follo
|
|||||||
|
|
||||||
## Deployment
|
## Deployment
|
||||||
|
|
||||||
The service itself is distributed as Docker container. Check the [`lora-adapter`](https://github.com/absmach/magistrala/blob/main/docker/addons/lora-adapter/docker-compose.yml) service section in docker-compose to see how service is deployed.
|
The service itself is distributed as Docker container. Check the [`lora-adapter`](https://github.com/absmach/magistrala/blob/main/docker/addons/lora-adapter/docker-compose.yml) service section in docker-compose file to see how service is deployed.
|
||||||
|
|
||||||
Running this service outside of container requires working instance of the message broker service, LoRa server, things service and Jaeger server.
|
Running this service outside of container requires working instance of the message broker service, LoRa server, things service and Jaeger server.
|
||||||
To start the service outside of the container, execute the following shell script:
|
To start the service outside of the container, execute the following shell script:
|
||||||
@@ -79,7 +79,7 @@ Setting `MG_LORA_ADAPTER_HTTP_SERVER_CERT` and `MG_LORA_ADAPTER_HTTP_SERVER_KEY`
|
|||||||
This service can be deployed using docker containers. Docker compose file is available in `<project_root>/docker/addons/lora-adapter/docker-compose.yml`. In order to run Magistrala lora-adapter, execute the following command:
|
This service can be deployed using docker containers. Docker compose file is available in `<project_root>/docker/addons/lora-adapter/docker-compose.yml`. In order to run Magistrala lora-adapter, execute the following command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker-compose -f docker/addons/lora-adapter/docker-compose.yml up -d
|
docker compose -f docker/addons/lora-adapter/docker-compose.yml up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|||||||
+2
-2
@@ -34,7 +34,7 @@ The service is configured using the environment variables presented in the follo
|
|||||||
|
|
||||||
## Deployment
|
## Deployment
|
||||||
|
|
||||||
The service itself is distributed as Docker container. Check the [`mqtt-adapter`](https://github.com/absmach/magistrala/blob/main/docker/docker-compose.yml) service section in docker-compose to see how service is deployed.
|
The service itself is distributed as Docker container. Check the [`mqtt-adapter`](https://github.com/absmach/magistrala/blob/main/docker/docker-compose.yml) service section in docker-compose file to see how service is deployed.
|
||||||
|
|
||||||
Running this service outside of container requires working instance of the message broker service, things service and Jaeger server.
|
Running this service outside of container requires working instance of the message broker service, things service and Jaeger server.
|
||||||
To start the service outside of the container, execute the following shell script:
|
To start the service outside of the container, execute the following shell script:
|
||||||
@@ -80,4 +80,4 @@ $GOBIN/magistrala-mqtt
|
|||||||
|
|
||||||
Setting `MG_THINGS_AUTH_GRPC_CLIENT_CERT` and `MG_THINGS_AUTH_GRPC_CLIENT_KEY` will enable TLS against the things service. The service expects a file in PEM format for both the certificate and the key. Setting `MG_THINGS_AUTH_GRPC_SERVER_CERTS` will enable TLS against the things service trusting only those CAs that are provided. The service expects a file in PEM format of trusted CAs.
|
Setting `MG_THINGS_AUTH_GRPC_CLIENT_CERT` and `MG_THINGS_AUTH_GRPC_CLIENT_KEY` will enable TLS against the things service. The service expects a file in PEM format for both the certificate and the key. Setting `MG_THINGS_AUTH_GRPC_SERVER_CERTS` will enable TLS against the things service trusting only those CAs that are provided. The service expects a file in PEM format of trusted CAs.
|
||||||
|
|
||||||
For more information about service capabilities and its usage, please check out the API documentation [API](https://github.com/absmach/magistrala/blob/master/api/mqtt.yml).
|
For more information about service capabilities and its usage, please check out the API documentation [API](https://github.com/absmach/magistrala/blob/main/api/mqtt.yml).
|
||||||
|
|||||||
+2
-2
@@ -28,7 +28,7 @@ The service is configured using the environment variables presented in the follo
|
|||||||
|
|
||||||
## Deployment
|
## Deployment
|
||||||
|
|
||||||
The service itself is distributed as Docker container. Check the [`opcua-adapter`](https://github.com/absmach/magistrala/blob/master/docker/addons/opcua-adapter/docker-compose.yml) service section in docker-compose to see how service is deployed.
|
The service itself is distributed as Docker container. Check the [`opcua-adapter`](https://github.com/absmach/magistrala/blob/main/docker/addons/opcua-adapter/docker-compose.yml) service section in docker-compose file to see how service is deployed.
|
||||||
|
|
||||||
Running this service outside of container requires working instance of the message broker service, redis routemap server and Jaeger server.
|
Running this service outside of container requires working instance of the message broker service, redis routemap server and Jaeger server.
|
||||||
To start the service outside of the container, execute the following shell script:
|
To start the service outside of the container, execute the following shell script:
|
||||||
@@ -69,7 +69,7 @@ Setting `MG_LORA_ADAPTER_HTTP_SERVER_CERT` and `MG_LORA_ADAPTER_HTTP_SERVER_KEY`
|
|||||||
This service can be deployed using docker containers. Docker compose file is available in `<project_root>/docker/addons/opcua-adapter/docker-compose.yml`. In order to run Magistrala opcua-adapter, execute the following command:
|
This service can be deployed using docker containers. Docker compose file is available in `<project_root>/docker/addons/opcua-adapter/docker-compose.yml`. In order to run Magistrala opcua-adapter, execute the following command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker-compose -f docker/addons/opcua-adapter/docker-compose.yml up -d
|
docker compose -f docker/addons/opcua-adapter/docker-compose.yml up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ func TestMain(m *testing.M) {
|
|||||||
|
|
||||||
container, err := pool.RunWithOptions(&dockertest.RunOptions{
|
container, err := pool.RunWithOptions(&dockertest.RunOptions{
|
||||||
Repository: "postgres",
|
Repository: "postgres",
|
||||||
Tag: "16.1-alpine",
|
Tag: "16.2-alpine",
|
||||||
Env: []string{
|
Env: []string{
|
||||||
"POSTGRES_USER=test",
|
"POSTGRES_USER=test",
|
||||||
"POSTGRES_PASSWORD=test",
|
"POSTGRES_PASSWORD=test",
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ type revokeCertsRes struct {
|
|||||||
RevocationTime time.Time `json:"revocation_time"`
|
RevocationTime time.Time `json:"revocation_time"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// BoostrapsPage contains list of boostrap configs in a page with proper metadata.
|
// bootstrapsPage contains list of bootstrap configs in a page with proper metadata.
|
||||||
type BootstrapPage struct {
|
type BootstrapPage struct {
|
||||||
Configs []BootstrapConfig `json:"configs"`
|
Configs []BootstrapConfig `json:"configs"`
|
||||||
pageRes
|
pageRes
|
||||||
|
|||||||
+1
-1
@@ -108,7 +108,7 @@ build/magistrala-provision
|
|||||||
Docker composition:
|
Docker composition:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker-compose -f docker/addons/provision/docker-compose.yml up
|
docker compose -f docker/addons/provision/docker-compose.yml up
|
||||||
```
|
```
|
||||||
|
|
||||||
For the case that credentials or API token is passed in configuration file or environment variables, call to `/mapping` endpoint doesn't require `Authentication` header:
|
For the case that credentials or API token is passed in configuration file or environment variables, call to `/mapping` endpoint doesn't require `Authentication` header:
|
||||||
|
|||||||
@@ -34,8 +34,8 @@ default values.
|
|||||||
|
|
||||||
## Deployment
|
## Deployment
|
||||||
|
|
||||||
The service itself is distributed as Docker container. Check the [`cassandra-reader`](https://github.com/absmach/magistrala/blob/master/docker/addons/cassandra-reader/docker-compose.yml#L15-L35) service section in
|
The service itself is distributed as Docker container. Check the [`cassandra-reader`](https://github.com/absmach/magistrala/blob/main/docker/addons/cassandra-reader/docker-compose.yml#L15-L35) service section in
|
||||||
docker-compose to see how service is deployed.
|
docker-compose file to see how service is deployed.
|
||||||
|
|
||||||
To start the service, execute the following shell script:
|
To start the service, execute the following shell script:
|
||||||
|
|
||||||
@@ -84,9 +84,9 @@ In order to run all Magistrala core services, as well as mentioned optional ones
|
|||||||
execute following command:
|
execute following command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker-compose -f docker/docker-compose.yml up -d
|
docker compose -f docker/docker-compose.yml up -d
|
||||||
./docker/addons/cassandra-writer/init.sh
|
./docker/addons/cassandra-writer/init.sh
|
||||||
docker-compose -f docker/addons/casandra-reader/docker-compose.yml up -d
|
docker compose -f docker/addons/casandra-reader/docker-compose.yml up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ default values.
|
|||||||
|
|
||||||
## Deployment
|
## Deployment
|
||||||
|
|
||||||
The service itself is distributed as Docker container. Check the [`influxdb-reader`](https://github.com/absmach/magistrala/blob/master/docker/addons/influxdb-reader/docker-compose.yml#L17-L40) service section in docker-compose to see how service is deployed.
|
The service itself is distributed as Docker container. Check the [`influxdb-reader`](https://github.com/absmach/magistrala/blob/main/docker/addons/influxdb-reader/docker-compose.yml#L17-L40) service section in docker-compose file to see how service is deployed.
|
||||||
|
|
||||||
To start the service, execute the following shell script:
|
To start the service, execute the following shell script:
|
||||||
|
|
||||||
@@ -100,14 +100,14 @@ In order to run all Magistrala core services, as well as mentioned optional ones
|
|||||||
execute following command:
|
execute following command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker-compose -f docker/docker-compose.yml up -d
|
docker compose -f docker/docker-compose.yml up -d
|
||||||
docker-compose -f docker/addons/influxdb-reader/docker-compose.yml up -d
|
docker compose -f docker/addons/influxdb-reader/docker-compose.yml up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
And, to use the default .env file, execute the following command:
|
And, to use the default .env file, execute the following command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker-compose -f docker/addons/influxdb-reader/docker-compose.yml up --env-file docker/.env -d
|
docker compose -f docker/addons/influxdb-reader/docker-compose.yml up --env-file docker/.env -d
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|||||||
@@ -32,8 +32,8 @@ default values.
|
|||||||
|
|
||||||
## Deployment
|
## Deployment
|
||||||
|
|
||||||
The service itself is distributed as Docker container. Check the [`mongodb-reader`](https://github.com/absmach/magistrala/blob/master/docker/addons/mongodb-reader/docker-compose.yml#L16-L37) service section in
|
The service itself is distributed as Docker container. Check the [`mongodb-reader`](https://github.com/absmach/magistrala/blob/main/docker/addons/mongodb-reader/docker-compose.yml#L16-L37) service section in
|
||||||
docker-compose to see how service is deployed.
|
docker-compose file to see how service is deployed.
|
||||||
|
|
||||||
To start the service, execute the following shell script:
|
To start the service, execute the following shell script:
|
||||||
|
|
||||||
@@ -81,8 +81,8 @@ In order to run all Magistrala core services, as well as mentioned optional ones
|
|||||||
execute following command:
|
execute following command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker-compose -f docker/docker-compose.yml up -d
|
docker compose -f docker/docker-compose.yml up -d
|
||||||
docker-compose -f docker/addons/mongodb-reader/docker-compose.yml up -d
|
docker compose -f docker/addons/mongodb-reader/docker-compose.yml up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|||||||
@@ -38,8 +38,8 @@ default values.
|
|||||||
|
|
||||||
## Deployment
|
## Deployment
|
||||||
|
|
||||||
The service itself is distributed as Docker container. Check the [`postgres-reader`](https://github.com/absmach/magistrala/blob/master/docker/addons/postgres-reader/docker-compose.yml#L17-L41) service section in
|
The service itself is distributed as Docker container. Check the [`postgres-reader`](https://github.com/absmach/magistrala/blob/main/docker/addons/postgres-reader/docker-compose.yml#L17-L41) service section in
|
||||||
docker-compose to see how service is deployed.
|
docker-compose file to see how service is deployed.
|
||||||
|
|
||||||
To start the service, execute the following shell script:
|
To start the service, execute the following shell script:
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ func TestMain(m *testing.M) {
|
|||||||
}
|
}
|
||||||
container, err := pool.RunWithOptions(&dockertest.RunOptions{
|
container, err := pool.RunWithOptions(&dockertest.RunOptions{
|
||||||
Repository: "postgres",
|
Repository: "postgres",
|
||||||
Tag: "16.1-alpine",
|
Tag: "16.2-alpine",
|
||||||
Env: []string{
|
Env: []string{
|
||||||
"POSTGRES_USER=test",
|
"POSTGRES_USER=test",
|
||||||
"POSTGRES_PASSWORD=test",
|
"POSTGRES_PASSWORD=test",
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ default values.
|
|||||||
|
|
||||||
## Deployment
|
## Deployment
|
||||||
|
|
||||||
The service itself is distributed as Docker container. Check the [`timescale-reader`](https://github.com/absmach/magistrala/blob/master/docker/addons/timescale-reader/docker-compose.yml#L17-L41) service section in docker-compose to see how service is deployed.
|
The service itself is distributed as Docker container. Check the [`timescale-reader`](https://github.com/absmach/magistrala/blob/main/docker/addons/timescale-reader/docker-compose.yml#L17-L41) service section in docker-compose file to see how service is deployed.
|
||||||
|
|
||||||
To start the service, execute the following shell script:
|
To start the service, execute the following shell script:
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -55,8 +55,8 @@ default values.
|
|||||||
|
|
||||||
## Deployment
|
## Deployment
|
||||||
|
|
||||||
The service itself is distributed as Docker container. Check the [`things `](https://github.com/absmach/magistrala/blob/master/docker/docker-compose.yml#L167-L194) service section in
|
The service itself is distributed as Docker container. Check the [`things `](https://github.com/absmach/magistrala/blob/main/docker/docker-compose.yml#L167-L194) service section in
|
||||||
docker-compose to see how service is deployed.
|
docker-compose file to see how service is deployed.
|
||||||
|
|
||||||
To start the service outside of the container, execute the following shell script:
|
To start the service outside of the container, execute the following shell script:
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ func TestMain(m *testing.M) {
|
|||||||
|
|
||||||
container, err := pool.RunWithOptions(&dockertest.RunOptions{
|
container, err := pool.RunWithOptions(&dockertest.RunOptions{
|
||||||
Repository: "postgres",
|
Repository: "postgres",
|
||||||
Tag: "16.1-alpine",
|
Tag: "16.2-alpine",
|
||||||
Env: []string{
|
Env: []string{
|
||||||
"POSTGRES_USER=test",
|
"POSTGRES_USER=test",
|
||||||
"POSTGRES_PASSWORD=test",
|
"POSTGRES_PASSWORD=test",
|
||||||
|
|||||||
+2
-2
@@ -35,8 +35,8 @@ default values.
|
|||||||
|
|
||||||
## Deployment
|
## Deployment
|
||||||
|
|
||||||
The service itself is distributed as Docker container. Check the [`twins`](https://github.com/absmach/magistrala/blob/master/docker/addons/twins/docker-compose.yml#L35-L58) service section in
|
The service itself is distributed as Docker container. Check the [`twins`](https://github.com/absmach/magistrala/blob/main/docker/addons/twins/docker-compose.yml#L35-L58) service section in
|
||||||
docker-compose to see how service is deployed.
|
docker-compose file to see how service is deployed.
|
||||||
|
|
||||||
To start the service outside of the container, execute the following shell
|
To start the service outside of the container, execute the following shell
|
||||||
script:
|
script:
|
||||||
|
|||||||
+1
-1
@@ -54,7 +54,7 @@ The service is configured using the environment variables presented in the follo
|
|||||||
|
|
||||||
## Deployment
|
## Deployment
|
||||||
|
|
||||||
The service itself is distributed as Docker container. Check the [`users`](https://github.com/absmach/magistrala/blob/main/docker/docker-compose.yml) service section in docker-compose to see how service is deployed.
|
The service itself is distributed as Docker container. Check the [`users`](https://github.com/absmach/magistrala/blob/main/docker/docker-compose.yml) service section in docker-compose file to see how service is deployed.
|
||||||
|
|
||||||
To start the service outside of the container, execute the following shell script:
|
To start the service outside of the container, execute the following shell script:
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ func TestMain(m *testing.M) {
|
|||||||
|
|
||||||
container, err := pool.RunWithOptions(&dockertest.RunOptions{
|
container, err := pool.RunWithOptions(&dockertest.RunOptions{
|
||||||
Repository: "postgres",
|
Repository: "postgres",
|
||||||
Tag: "16.1-alpine",
|
Tag: "16.2-alpine",
|
||||||
Env: []string{
|
Env: []string{
|
||||||
"POSTGRES_USER=test",
|
"POSTGRES_USER=test",
|
||||||
"POSTGRES_PASSWORD=test",
|
"POSTGRES_PASSWORD=test",
|
||||||
|
|||||||
+1
-1
@@ -26,7 +26,7 @@ The service is configured using the environment variables presented in the follo
|
|||||||
|
|
||||||
## Deployment
|
## Deployment
|
||||||
|
|
||||||
The service is distributed as Docker container. Check the [`ws-adapter`](https://github.com/absmach/magistrala/blob/main/docker/docker-compose.yml) service section in docker-compose to see how the service is deployed.
|
The service is distributed as Docker container. Check the [`ws-adapter`](https://github.com/absmach/magistrala/blob/main/docker/docker-compose.yml) service section in docker-compose file to see how the service is deployed.
|
||||||
|
|
||||||
Running this service outside of container requires working instance of the message broker service, things service and Jaeger server.
|
Running this service outside of container requires working instance of the message broker service, things service and Jaeger server.
|
||||||
To start the service outside of the container, execute the following shell script:
|
To start the service outside of the container, execute the following shell script:
|
||||||
|
|||||||
Reference in New Issue
Block a user