305 lines
7.5 KiB
Bash
305 lines
7.5 KiB
Bash
# Docker: Environment variables in Compose
|
||
|
||
## NginX
|
||
MF_NGINX_HTTP_PORT=80
|
||
MF_NGINX_SSL_PORT=443
|
||
MF_NGINX_MQTT_PORT=1883
|
||
MF_NGINX_MQTTS_PORT=8883
|
||
|
||
## NATS
|
||
MF_NATS_URL=nats://nats:4222
|
||
|
||
## Redis
|
||
MF_REDIS_TCP_PORT=6379
|
||
|
||
## Grafana
|
||
MF_GRAFANA_PORT=3000
|
||
|
||
## Jaeger
|
||
MF_JAEGER_PORT=6831
|
||
MF_JAEGER_FRONTEND=16686
|
||
MF_JAEGER_COLLECTOR=14268
|
||
MF_JAEGER_CONFIGS=5778
|
||
MF_JAEGER_URL=jaeger:6831
|
||
|
||
## Core Services
|
||
|
||
### Auth
|
||
MF_AUTH_LOG_LEVEL=debug
|
||
MF_AUTH_HTTP_PORT=8189
|
||
MF_AUTH_GRPC_PORT=8181
|
||
MF_AUTH_GRPC_URL=auth:8181
|
||
MF_AUTH_GRPC_TIMEOUT=1s
|
||
MF_AUTH_DB_PORT=5432
|
||
MF_AUTH_DB_USER=mainflux
|
||
MF_AUTH_DB_PASS=mainflux
|
||
MF_AUTH_DB=auth
|
||
MF_AUTH_SECRET=secret
|
||
|
||
### Users
|
||
MF_USERS_LOG_LEVEL=debug
|
||
MF_USERS_HTTP_PORT=8180
|
||
MF_USERS_DB_PORT=5432
|
||
MF_USERS_DB_USER=mainflux
|
||
MF_USERS_DB_PASS=mainflux
|
||
MF_USERS_DB=users
|
||
MF_USERS_ADMIN_EMAIL=admin@example.com
|
||
MF_USERS_ADMIN_PASSWORD=12345678
|
||
|
||
### Email utility
|
||
MF_EMAIL_DRIVER=smtp
|
||
MF_EMAIL_HOST=smtp.mailtrap.io
|
||
MF_EMAIL_PORT=2525
|
||
MF_EMAIL_USERNAME=18bf7f70705139
|
||
MF_EMAIL_PASSWORD=2b0d302e775b1e
|
||
MF_EMAIL_FROM_ADDRESS=from@example.com
|
||
MF_EMAIL_FROM_NAME=Example
|
||
MF_EMAIL_TEMPLATE=email.tmpl
|
||
|
||
### Token utility
|
||
MF_TOKEN_RESET_ENDPOINT=/reset-request
|
||
|
||
### Things
|
||
MF_THINGS_LOG_LEVEL=debug
|
||
MF_THINGS_HTTP_PORT=8182
|
||
MF_THINGS_AUTH_HTTP_PORT=8989
|
||
MF_THINGS_AUTH_GRPC_PORT=8183
|
||
MF_THINGS_AUTH_GRPC_URL=things:8183
|
||
MF_THINGS_AUTH_GRPC_TIMEOUT=1s
|
||
MF_THINGS_DB_PORT=5432
|
||
MF_THINGS_DB_USER=mainflux
|
||
MF_THINGS_DB_PASS=mainflux
|
||
MF_THINGS_DB=things
|
||
MF_THINGS_ES_URL=localhost:6379
|
||
MF_THINGS_ES_PASS=
|
||
MF_THINGS_ES_DB=0
|
||
|
||
### HTTP
|
||
MF_HTTP_ADAPTER_PORT=8185
|
||
|
||
### MQTT
|
||
MF_MQTT_ADAPTER_LOG_LEVEL=debug
|
||
MF_MQTT_ADAPTER_MQTT_PORT=1883
|
||
MF_MQTT_BROKER_PORT=1883
|
||
MF_MQTT_ADAPTER_WS_PORT=8080
|
||
MF_MQTT_BROKER_WS_PORT=8080
|
||
MF_MQTT_ADAPTER_ES_DB=0
|
||
MF_MQTT_ADAPTER_ES_PASS=
|
||
|
||
### VERNEMQ
|
||
MF_DOCKER_VERNEMQ_ALLOW_ANONYMOUS=on
|
||
MF_DOCKER_VERNEMQ_LOG__CONSOLE__LEVEL=error
|
||
|
||
### CoAP
|
||
MF_COAP_ADAPTER_LOG_LEVEL=debug
|
||
MF_COAP_ADAPTER_PORT=5683
|
||
|
||
## Addons Services
|
||
### Bootstrap
|
||
MF_BOOTSTRAP_LOG_LEVEL=debug
|
||
MF_BOOTSTRAP_PORT=8202
|
||
MF_BOOTSTRAP_DB_PORT=5432
|
||
MF_BOOTSTRAP_DB_USER=mainflux
|
||
MF_BOOTSTRAP_DB_PASS=mainflux
|
||
MF_BOOTSTRAP_DB=bootstrap
|
||
MF_BOOTSTRAP_DB_SSL_MODE=disable
|
||
|
||
### Provision
|
||
MF_PROVISION_CONFIG_FILE=/configs/config.toml
|
||
MF_PROVISION_LOG_LEVEL=debug
|
||
MF_PROVISION_HTTP_PORT=8190
|
||
MF_PROVISION_ENV_CLIENTS_TLS=false
|
||
MF_PROVISION_SERVER_CERT=
|
||
MF_PROVISION_SERVER_KEY=
|
||
MF_PROVISION_MQTT_URL=tcp://localhost
|
||
MF_PROVISION_USERS_LOCATION=http://localhost:8180
|
||
MF_PROVISION_THINGS_LOCATION=http://things:8182
|
||
MF_PROVISION_USER=
|
||
MF_PROVISION_PASS=
|
||
MF_PROVISION_API_KEY=
|
||
MF_PROVISION_CERTS_SVC_URL=http://certs:8204
|
||
MF_PROVISION_X509_PROVISIONING=true
|
||
MF_PROVISION_BS_SVC_URL=http://bootstrap:8202/things
|
||
MF_PROVISION_BS_SVC_WHITELIST_URL=http://bootstrap:8202/things/state
|
||
MF_PROVISION_BS_CONFIG_PROVISIONING=true
|
||
MF_PROVISION_BS_AUTO_WHITELIST=true
|
||
MF_PROVISION_BS_CONTENT=
|
||
MF_PROVISION_CERTS_RSA_BITS=4096
|
||
MF_PROVISION_CERTS_HOURS_VALID=2400h
|
||
|
||
# Certs
|
||
MF_CERTS_LOG_LEVEL=debug
|
||
MF_CERTS_HTTP_PORT=8204
|
||
MF_CERTS_DB_HOST=certs-db
|
||
MF_CERTS_DB_PORT=5432
|
||
MF_CERTS_DB_USER=mainflux
|
||
MF_CERTS_DB_PASS=mainflux
|
||
MF_CERTS_DB=certs
|
||
MF_CERTS_DB_SSL_MODE=
|
||
MF_CERTS_DB_SSL_CERT=
|
||
MF_CERTS_DB_SSL_KEY=
|
||
MF_CERTS_DB_SSL_ROOT_CERT=
|
||
MF_CERTS_ENCRYPT_KEY=
|
||
MF_CERTS_CLIENT_TLS=
|
||
MF_CERTS_CA_CERTS=
|
||
MF_CERTS_SERVER_CERT=
|
||
MF_CERTS_SERVER_KEY=
|
||
MF_SDK_BASE_URL=http://172.17.0.1
|
||
MF_SDK_THINGS_PREFIX=
|
||
MF_CERTS_SIGN_CA_PATH=/etc/ssl/certs/ca.crt
|
||
MF_CERTS_SIGN_CA_KEY_PATH=/etc/ssl/certs/ca.key
|
||
MF_CERTS_SIGN_HOURS_VALID=2048h
|
||
MF_CERTS_SIGN_RSA_BITS=2048
|
||
MF_CERTS_VAULT_HOST=
|
||
MF_CERTS_VAULT_PKI_PATH=pki_int
|
||
MF_CERTS_VAULT_ROLE=agent
|
||
MF_CERTS_VAULT_TOKEN=
|
||
|
||
### Vault
|
||
MF_VAULT_HOST=vault
|
||
MF_VAULT_PORT=8200
|
||
MF_VAULT_UNSEAL_KEY_1=
|
||
MF_VAULT_UNSEAL_KEY_2=
|
||
MF_VAULT_UNSEAL_KEY_3=
|
||
MF_VAULT_TOKEN=
|
||
MF_VAULT_CA_NAME=mainflux
|
||
MF_VAULT_CA_ROLE_NAME=mainflux
|
||
MF_VAULT_CA_DOMAIN_NAME=mainflux.com
|
||
MF_VAULT_CA_OU='Mainflux Cloud'
|
||
MF_VAULT_CA_ORG='Mainflux Company'
|
||
MF_VAULT_CA_COUNTRY=Serbia
|
||
MF_VAULT_CA_LOC=BG
|
||
|
||
### LoRa
|
||
MF_LORA_ADAPTER_LOG_LEVEL=debug
|
||
MF_LORA_ADAPTER_MESSAGES_URL=tcp://lora.mqtt.mainflux.io:1883
|
||
MF_LORA_ADAPTER_HTTP_PORT=8187
|
||
MF_LORA_ADAPTER_ROUTE_MAP_URL=localhost:6379
|
||
MF_LORA_ADAPTER_ROUTE_MAP_PASS=
|
||
MF_LORA_ADAPTER_ROUTE_MAP_DB=0
|
||
|
||
### OPC-UA
|
||
MF_OPCUA_ADAPTER_HTTP_PORT=8188
|
||
MF_OPCUA_ADAPTER_LOG_LEVEL=debug
|
||
MF_OPCUA_ADAPTER_POLICY=
|
||
MF_OPCUA_ADAPTER_MODE=
|
||
MF_OPCUA_ADAPTER_CERT_FILE=
|
||
MF_OPCUA_ADAPTER_KEY_FILE=
|
||
MF_OPCUA_ADAPTER_ROUTE_MAP_URL=localhost:6379
|
||
MF_OPCUA_ADAPTER_ROUTE_MAP_PASS=
|
||
MF_OPCUA_ADAPTER_ROUTE_MAP_DB=0
|
||
MF_OPCUA_ADAPTER_EVENT_CONSUMER=opcua
|
||
|
||
### Cassandra Writer
|
||
MF_CASSANDRA_WRITER_LOG_LEVEL=debug
|
||
MF_CASSANDRA_WRITER_PORT=8902
|
||
MF_CASSANDRA_WRITER_DB_PORT=9042
|
||
MF_CASSANDRA_WRITER_DB_CLUSTER=mainflux-cassandra
|
||
MF_CASSANDRA_WRITER_DB_KEYSPACE=mainflux
|
||
MF_CASSANDRA_WRITER_CONTENT_TYPE=application/senml+json
|
||
MF_CASSANDRA_WRITER_TRANSFORMER=senml
|
||
|
||
### Cassandra Reader
|
||
MF_CASSANDRA_READER_LOG_LEVEL=debug
|
||
MF_CASSANDRA_READER_PORT=8903
|
||
MF_CASSANDRA_READER_DB_PORT=9042
|
||
MF_CASSANDRA_READER_DB_CLUSTER=mainflux-cassandra
|
||
MF_CASSANDRA_READER_DB_KEYSPACE=mainflux
|
||
MF_CASSANDRA_READER_SERVER_CERT=
|
||
MF_CASSANDRA_READER_SERVER_KEY=
|
||
|
||
### InfluxDB
|
||
MF_INFLUXDB_PORT= 8086
|
||
MF_INFLUXDB_DB: mainflux
|
||
MF_INFLUXDB_ADMIN_USER: mainflux
|
||
MF_INFLUXDB_ADMIN_PASSWORD: mainfllux
|
||
MF_INFLUXDB_HTTP_AUTH_ENABLED: true
|
||
|
||
### InfluxDB Writer
|
||
MF_INFLUX_WRITER_LOG_LEVEL=debug
|
||
MF_INFLUX_WRITER_PORT=8900
|
||
MF_INFLUX_WRITER_BATCH_SIZE=5000
|
||
MF_INFLUX_WRITER_BATCH_TIMEOUT=5
|
||
MF_INFLUX_WRITER_GRAFANA_PORT=3001
|
||
MF_INFLUX_WRITER_CONTENT_TYPE=application/senml+json
|
||
MF_INFLUX_WRITER_TRANSFORMER=senml
|
||
|
||
### InfluxDB Reader
|
||
MF_INFLUX_READER_LOG_LEVEL=debug
|
||
MF_INFLUX_READER_PORT=8905
|
||
MF_INFLUX_READER_SERVER_KEY=
|
||
MF_INFLUX_READER_SERVER_CERT=
|
||
|
||
### MongoDB Writer
|
||
MF_MONGO_WRITER_LOG_LEVEL=debug
|
||
MF_MONGO_WRITER_PORT=8901
|
||
MF_MONGO_WRITER_DB=mainflux
|
||
MF_MONGO_WRITER_DB_PORT=27017
|
||
MF_MONGO_WRITER_CONTENT_TYPE=application/senml+json
|
||
MF_MONGO_WRITER_TRANSFORMER=senml
|
||
|
||
### MongoDB Reader
|
||
MF_MONGO_READER_LOG_LEVEL=debug
|
||
MF_MONGO_READER_PORT=8904
|
||
MF_MONGO_READER_DB=mainflux
|
||
MF_MONGO_READER_DB_PORT=27017
|
||
MF_MONGO_READER_SERVER_CERT=
|
||
MF_MONGO_READER_SERVER_KEY=
|
||
|
||
### Postgres Writer
|
||
MF_POSTGRES_WRITER_LOG_LEVEL=debug
|
||
MF_POSTGRES_WRITER_PORT=9104
|
||
MF_POSTGRES_WRITER_DB_PORT=5432
|
||
MF_POSTGRES_WRITER_DB_USER=mainflux
|
||
MF_POSTGRES_WRITER_DB_PASS=mainflux
|
||
MF_POSTGRES_WRITER_DB=mainflux
|
||
MF_POSTGRES_WRITER_DB_SSL_MODE=disable
|
||
MF_POSTGRES_WRITER_DB_SSL_CERT=""
|
||
MF_POSTGRES_WRITER_DB_SSL_KEY=""
|
||
MF_POSTGRES_WRITER_DB_SSL_ROOT_CERT=""
|
||
MF_POSTGRES_WRITER_CONTENT_TYPE=application/senml+json
|
||
MF_POSTGRES_WRITER_TRANSFORMER=senml
|
||
|
||
### Postgres Reader
|
||
MF_POSTGRES_READER_LOG_LEVEL=debug
|
||
MF_POSTGRES_READER_PORT=9204
|
||
MF_POSTGRES_READER_CLIENT_TLS=false
|
||
MF_POSTGRES_READER_CA_CERTS=""
|
||
MF_POSTGRES_READER_DB_PORT=5432
|
||
MF_POSTGRES_READER_DB_USER=mainflux
|
||
MF_POSTGRES_READER_DB_PASS=mainflux
|
||
MF_POSTGRES_READER_DB=mainflux
|
||
MF_POSTGRES_READER_DB_SSL_MODE=disable
|
||
MF_POSTGRES_READER_DB_SSL_CERT=""
|
||
MF_POSTGRES_READER_DB_SSL_KEY=""
|
||
MF_POSTGRES_READER_DB_SSL_ROOT_CERT=""
|
||
|
||
# Twins
|
||
MF_TWINS_LOG_LEVEL=debug
|
||
MF_TWINS_HTTP_PORT=9021
|
||
MF_TWINS_SERVER_CERT=""
|
||
MF_TWINS_SERVER_KEY=""
|
||
MF_TWINS_DB=mainflux-twins
|
||
MF_TWINS_DB_HOST=twins-db
|
||
MF_TWINS_DB_PORT=27018
|
||
MF_TWINS_SINGLE_USER_EMAIL=""
|
||
MF_TWINS_SINGLE_USER_TOKEN=""
|
||
MF_TWINS_CLIENT_TLS=""
|
||
MF_TWINS_CA_CERTS=""
|
||
MF_TWINS_CHANNEL_ID=
|
||
MF_TWINS_CACHE_URL=es-redis:6379
|
||
MF_TWINS_CACHE_PASS=
|
||
MF_TWINS_CACHE_DB=0
|
||
|
||
# SMTP Notifier
|
||
MF_SMTP_NOTIFIER_PORT=8906
|
||
MF_SMTP_NOTIFIER_LOG_LEVEL=debug
|
||
MF_SMTP_NOTIFIER_HTTP_PORT=8180
|
||
MF_SMTP_NOTIFIER_DB_PORT=5432
|
||
MF_SMTP_NOTIFIER_DB_USER=mainflux
|
||
MF_SMTP_NOTIFIER_DB_PASS=mainflux
|
||
MF_SMTP_NOTIFIER_DB=subscriptions
|
||
|
||
# Docker image tag
|
||
MF_RELEASE_TAG=latest
|