mirror of
https://github.com/mainflux/mainflux.git
synced 2025-04-24 13:48:49 +08:00

* feat(docker): update auth env vars in compose Update docker/addons/*/docker-compose.yml with appropriate auth environment variables Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com> * feat(config): update remotes URLs Updated the URLs for the remotes in the config file to reflect the correct endpoints. - Updated bootstrap_url to "http://localhost:9013" - Updated certs_url to "http://localhost:9019" - Updated http_adapter_url to "http://localhost/http:9016" - Updated reader_url to "http://localhost" Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com> --------- Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com>
93 lines
3.9 KiB
YAML
93 lines
3.9 KiB
YAML
# Copyright (c) Mainflux
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# This docker-compose file contains optional InfluxDB and InfluxDB-writer services
|
|
# for the Mainflux platform. Since this services are optional, this file is dependent on the
|
|
# 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.
|
|
|
|
version: "3.7"
|
|
|
|
networks:
|
|
mainflux-base-net:
|
|
|
|
volumes:
|
|
mainflux-smpp-notifier-volume:
|
|
|
|
services:
|
|
smpp-notifier-db:
|
|
image: postgres:10.2-alpine
|
|
container_name: mainflux-smpp-notifier-db
|
|
restart: on-failure
|
|
environment:
|
|
POSTGRES_USER: ${MF_SMPP_NOTIFIER_DB_USER}
|
|
POSTGRES_PASSWORD: ${MF_SMPP_NOTIFIER_DB_PASS}
|
|
POSTGRES_DB: ${MF_SMPP_NOTIFIER_DB_NAME}
|
|
networks:
|
|
- mainflux-base-net
|
|
volumes:
|
|
- mainflux-smpp-notifier-volume:/var/lib/postgresql/datab
|
|
|
|
smpp-notifier:
|
|
image: mainflux/smpp-notifier:latest
|
|
container_name: mainflux-smpp-notifier
|
|
depends_on:
|
|
- smpp-notifier-db
|
|
restart: on-failure
|
|
environment:
|
|
MF_SMPP_NOTIFIER_LOG_LEVEL: ${MF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MPP_SYSTEM_TYPE: ${MF_SMPP_SYSTEM_TYPE}
|
|
MF_SMPP_SRC_ADDR_TON: ${MF_SMPP_SRC_ADDR_TON}
|
|
MF_SMPP_SRC_ADDR_NPI: ${MF_SMPP_SRC_ADDR_NPI}
|
|
MF_SMPP_DST_ADDR_TON: ${MF_SMPP_DST_ADDR_TON}
|
|
MF_SMPP_DST_ADDR_NPI: ${MF_SMPP_DST_ADDR_NPI}
|
|
MF_AUTH_GRPC_URL: ${MF_AUTH_GRPC_URL}
|
|
MF_AUTH_GRPC_TIMEOUT: ${MF_AUTH_GRPC_TIMEOUT}
|
|
MF_AUTH_GRPC_CLIENT_CERT: ${MF_AUTH_GRPC_CLIENT_CERT:+/users-grpc-client.crt}
|
|
MF_AUTH_GRPC_CLIENT_KEY: ${MF_AUTH_GRPC_CLIENT_KEY:+/users-grpc-client.key}
|
|
MF_AUTH_GRPC_SERVER_CA_CERTS: ${MF_AUTH_GRPC_SERVER_CA_CERTS:+/users-grpc-server-ca.crt}
|
|
MF_BROKER_URL: ${MF_BROKER_URL}
|
|
MF_JAEGER_URL: ${MF_JAEGER_URL}
|
|
MF_SEND_TELEMETRY: ${MF_SEND_TELEMETRY}
|
|
MF_SMPP_NOTIFIER_INSTANCE_ID: ${MF_SMPP_NOTIFIER_INSTANCE_ID}
|
|
ports:
|
|
- ${MF_SMPP_NOTIFIER_HTTP_PORT}:${MF_SMPP_NOTIFIER_HTTP_PORT}
|
|
networks:
|
|
- mainflux-base-net
|
|
volumes:
|
|
- ./config.toml:/config.toml
|
|
# Users gRPC client certificates
|
|
- type: bind
|
|
source: ${MF_ADDONS_CERTS_PATH_PREFIX}${MF_USERS_GRPC_CLIENT_CERT:-./ssl/certs/dummy/client_cert}
|
|
target: /users-grpc-client${MF_USERS_GRPC_CLIENT_CERT:+.crt}
|
|
bind:
|
|
create_host_path: true
|
|
- type: bind
|
|
source: ${MF_ADDONS_CERTS_PATH_PREFIX}${MF_USERS_GRPC_CLIENT_KEY:-./ssl/certs/dummy/client_key}
|
|
target: /users-grpc-client${MF_USERS_GRPC_CLIENT_KEY:+.key}
|
|
bind:
|
|
create_host_path: true
|
|
- type: bind
|
|
source: ${MF_ADDONS_CERTS_PATH_PREFIX}${MF_USERS_GRPC_SERVER_CA_CERTS:-./ssl/certs/dummy/server_ca}
|
|
target: /users-grpc-server-ca${MF_USERS_GRPC_SERVER_CA_CERTS:+.crt}
|
|
bind:
|
|
create_host_path: true
|